From 09562fdc0634925ed18f31bd2136800740621310 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Wed, 19 Jun 2019 10:32:01 -0400 Subject: [PATCH] Output in json format instead --- node-daemon/pvcd/CephInstance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node-daemon/pvcd/CephInstance.py b/node-daemon/pvcd/CephInstance.py index 211946ab..e92b0c1e 100644 --- a/node-daemon/pvcd/CephInstance.py +++ b/node-daemon/pvcd/CephInstance.py @@ -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