Skip to content

Commit 9fed459

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Allow format selection in get_opts"
2 parents 6ce53fe + 9f346c3 commit 9fed459

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

functional/common/test.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ def get_openstack_configuration_value(cls, configuration):
5858
return cls.openstack('configuration show ' + opts)
5959

6060
@classmethod
61-
def get_opts(cls, fields):
62-
return ' -f value ' + ' '.join(['-c ' + it for it in fields])
61+
def get_opts(cls, fields, format='value'):
62+
return ' -f {0} {1}'.format(format,
63+
' '.join(['-c ' + it for it in fields]))
6364

6465
@classmethod
6566
def assertOutput(cls, expected, actual):

0 commit comments

Comments
 (0)