Merge pull request #1359 from twmartin/znode-obj-not-iterable
Correct 'object not iterable' TypeError
This commit is contained in:
commit
6580867f33
1 changed files with 1 additions and 2 deletions
|
@ -122,7 +122,7 @@ def main():
|
||||||
|
|
||||||
command_type = 'op' if 'op' in module.params and module.params['op'] is not None else 'state'
|
command_type = 'op' if 'op' in module.params and module.params['op'] is not None else 'state'
|
||||||
method = module.params[command_type]
|
method = module.params[command_type]
|
||||||
result, result_dict = command_dict[command_type][method]
|
result, result_dict = command_dict[command_type][method]()
|
||||||
zoo.shutdown()
|
zoo.shutdown()
|
||||||
|
|
||||||
if result:
|
if result:
|
||||||
|
@ -225,4 +225,3 @@ class KazooCommandProxy():
|
||||||
from ansible.module_utils.basic import *
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue