From ec2c542b7ccd2b1927014770d7520f095d66420d Mon Sep 17 00:00:00 2001 From: tengqm Date: Sat, 25 Jul 2015 10:49:22 -0400 Subject: [PATCH] Fix resource listing error This patch fixes the cluster-policy-list operation error where 'path_args' was not treated in a dedicated parameter. Change-Id: I3a259b58585d9900e8db9ace141d85369f854bad --- senlinclient/v1/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/senlinclient/v1/client.py b/senlinclient/v1/client.py index b2d83cab..48381b80 100644 --- a/senlinclient/v1/client.py +++ b/senlinclient/v1/client.py @@ -45,9 +45,9 @@ class Client(object): print(self.auth.authorize(xport)) return xport - def list(self, cls, **options): + def list(self, cls, path_args=None, **options): try: - return cls.list(self.session, params=options) + return cls.list(self.session, path_args=path_args, params=options) except Exception as ex: client_exc.parse_exception(ex)