summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyrylo Romanenko <kromanenko@mirantis.com>2016-06-24 14:28:28 +0300
committerKyrylo Romanenko <kromanenko@mirantis.com>2016-06-24 14:28:28 +0300
commitca9a6daba07969081572edee71bdf3438f41425b (patch)
treebe98ac4d0d9738fef8263d0130a68a1106bf1a18
parentde909e4afc73ab88af6925314869d11564033842 (diff)
downloadpython-openstackclient-ca9a6daba07969081572edee71bdf3438f41425b.tar.gz
Make code more compact for get_list_opts function
Do it like in get_show_opts done. Change-Id: If6b115c35a41997627660830fb8e5d299e8fb8e9
-rw-r--r--functional/common/test.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/functional/common/test.py b/functional/common/test.py
index 43615615..e882dd64 100644
--- a/functional/common/test.py
+++ b/functional/common/test.py
@@ -63,9 +63,7 @@ class TestCase(testtools.TestCase):
@classmethod
def get_list_opts(cls, headers=[]):
- opts = ' -f csv '
- opts = opts + ' '.join(['-c ' + it for it in headers])
- return opts
+ return ' -f csv ' + ' '.join(['-c ' + it for it in headers])
@classmethod
def assertOutput(cls, expected, actual):