Merge "Fix TypeError when doing cluster-scale-in"

This commit is contained in:
Jenkins
2015-08-18 23:05:01 +00:00
committed by Gerrit Code Review

View File

@@ -102,7 +102,8 @@ class Client(object):
def action(self, cls, options):
def filter_args(method, params):
expected_args = inspect.getargspec(method).args
accepted_args = ([a for a in expected_args if a != 'self'])
accepted_args = ([a for a in expected_args and params
if a != 'self'])
filtered_args = dict((d, params[d]) for d in accepted_args)
return filtered_args