The rpc library returns a list, not a tuple.
---
lib/cmdlib.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/cmdlib.py b/lib/cmdlib.py
index ee0fd26..c3f7390 100644
--- a/lib/cmdlib.py
+++ b/lib/cmdlib.py
@@ -5170,7 +5170,7 @@ class IAllocator(object):
result = call_fn(self.sstore.GetMasterNode(), name, self.in_text)
- if not isinstance(result, tuple) or len(result) != 4:
+ if not isinstance(result, list) or len(result) != 4:
raise errors.OpExecError("Invalid result from master iallocator runner")
rcode, stdout, stderr, fail = result
--
1.5.6.5