Skip to content

Commit ca9a6da

Browse files
committed
Make code more compact for get_list_opts function
Do it like in get_show_opts done. Change-Id: If6b115c35a41997627660830fb8e5d299e8fb8e9
1 parent de909e4 commit ca9a6da

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

functional/common/test.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ def get_show_opts(cls, fields=[]):
6363

6464
@classmethod
6565
def get_list_opts(cls, headers=[]):
66-
opts = ' -f csv '
67-
opts = opts + ' '.join(['-c ' + it for it in headers])
68-
return opts
66+
return ' -f csv ' + ' '.join(['-c ' + it for it in headers])
6967

7068
@classmethod
7169
def assertOutput(cls, expected, actual):

0 commit comments

Comments
 (0)