Commit 94168010 authored by Benjamin Blanc's avatar Benjamin Blanc

testnode: Use hasattr instead of unappropriate get method

parent eeb3cdf8
...@@ -361,7 +361,7 @@ from the distributor.") ...@@ -361,7 +361,7 @@ from the distributor.")
log_directory=self.config['log_directory']) log_directory=self.config['log_directory'])
node_test_suite.edit(**test_suite) node_test_suite.edit(**test_suite)
# XXX: temporary hack to prevent empty test_suite # XXX: temporary hack to prevent empty test_suite
if not node_test_suite.get('test_suite'): if not hasattr(node_test_suite, 'test_suite'):
node_test_suite.edit(test_suite='') node_test_suite.edit(test_suite='')
run_software = True run_software = True
# kill processes from previous loop if any # kill processes from previous loop if any
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment