Output in json format instead

This commit is contained in:
Joshua Boniface 2019-06-19 10:32:01 -04:00
parent a940d03959
commit 09562fdc06
1 changed files with 1 additions and 1 deletions

View File

@ -505,7 +505,7 @@ def add_volume(zk_conn, logger, pool, name, size):
raise raise
# Get volume stats # 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 volstats = stdout
# Add the new volume to ZK # Add the new volume to ZK