Skip to content

Commit 6dbec64

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Make code more compact for get_list_opts function"
2 parents 0848073 + ca9a6da commit 6dbec64

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)