Skip to content

Commit 9f346c3

Browse files
committed
Allow format selection in get_opts
Default is "value". Change-Id: I244253f6cd53104a57ef12f6b14e1653c89d38bc
1 parent 52cb503 commit 9f346c3

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)