From 33ee8d6f891fb840d4c643db44f2f1aa837f948a Mon Sep 17 00:00:00 2001 From: twmartin Date: Thu, 10 Dec 2015 09:49:58 -0600 Subject: [PATCH] Correct 'object not iterable' TypeError --- lib/ansible/modules/extras/clustering/znode.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ansible/modules/extras/clustering/znode.py b/lib/ansible/modules/extras/clustering/znode.py index 51ab51d0ea4..d5913c772b3 100644 --- a/lib/ansible/modules/extras/clustering/znode.py +++ b/lib/ansible/modules/extras/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() -