summaryrefslogtreecommitdiff
path: root/clustering/znode.py
diff options
context:
space:
mode:
authorBrian Coca <bcoca@ansible.com>2015-12-13 10:45:05 -0500
committerBrian Coca <bcoca@ansible.com>2015-12-13 10:45:05 -0500
commit6580867f33605fd331944cf604270509e68eb166 (patch)
tree4eca79bd9386ea7b4052d70508a0737d412e1952 /clustering/znode.py
parentb51a662258847d4ba63e88cf49a1765c1e1bf395 (diff)
parent90327ad76bbcc54b7e0b04870fb369be5e7e3fc3 (diff)
downloadansible-modules-extras-win_power_scheme.tar.gz
Merge pull request #1359 from twmartin/znode-obj-not-iterablewin_power_scheme
Correct 'object not iterable' TypeError
Diffstat (limited to 'clustering/znode.py')
-rw-r--r--clustering/znode.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/clustering/znode.py b/clustering/znode.py
index 51ab51d0..d5913c77 100644
--- a/clustering/znode.py
+++ b/clustering/znode.py
@@ -122,7 +122,7 @@ def main():
command_type = 'op' if 'op' in module.params and module.params['op'] is not None else 'state'
method = module.params[command_type]
- result, result_dict = command_dict[command_type][method]
+ result, result_dict = command_dict[command_type][method]()
zoo.shutdown()
if result:
@@ -225,4 +225,3 @@ class KazooCommandProxy():
from ansible.module_utils.basic import *
main()
-