From 096a4c76373237d7f2229d3eceb07cb038b09270 Mon Sep 17 00:00:00 2001 From: tengqm Date: Mon, 19 Jan 2015 21:37:10 +0800 Subject: [PATCH] Remove dict translation for list operation --- senlinclient/v1/client.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/senlinclient/v1/client.py b/senlinclient/v1/client.py index 8fc7eac1..f4ad9c5e 100644 --- a/senlinclient/v1/client.py +++ b/senlinclient/v1/client.py @@ -59,10 +59,7 @@ class Client(object): return xport def list(self, cls, options=None): - path_args = None - if options: - path_args = self.get_options(options) - objs = cls.list(self.session, path_args=path_args) + objs = cls.list(self.session, path_args=options) return objs def list_short(self, cls, options=None):