Make code more compact for get_list_opts function

Do it like in get_show_opts done.

Change-Id: If6b115c35a41997627660830fb8e5d299e8fb8e9
This commit is contained in:
Kyrylo Romanenko 2016-06-24 14:28:28 +03:00
parent de909e4afc
commit ca9a6daba0

View File

@ -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):