Output in json format instead
This commit is contained in:
parent
a940d03959
commit
09562fdc06
|
@ -505,7 +505,7 @@ def add_volume(zk_conn, logger, pool, name, size):
|
|||
raise
|
||||
|
||||
# Get volume stats
|
||||
retcode, stdout, stderr = common.run_os_command('rbd info {}/{}'.format(pool, name))
|
||||
retcode, stdout, stderr = common.run_os_command('rbd info --format json {}/{}'.format(pool, name))
|
||||
volstats = stdout
|
||||
|
||||
# Add the new volume to ZK
|
||||
|
|
Loading…
Reference in New Issue