summaryrefslogtreecommitdiffstats
path: root/openshift-storage-libs
diff options
context:
space:
mode:
authorNitin Goyal <nigoyal@redhat.com>2019-09-16 14:41:09 +0530
committervponomar <vponomar@redhat.com>2019-09-16 10:02:54 +0000
commit046244942f7ad3f5f24b675dfa299ad955f1412f (patch)
tree2fa7c028d96c1ca46128ed4c71d4a2a4c7453c53 /openshift-storage-libs
parent93502c9b6d3a072d1cbfac01ddef94fac43da914 (diff)
Fix heketi_device_add library
As part of the fix loaded the output into json which was missed. Change-Id: Ia3d07f768362232ec2b34641be1a6ae4c4eec399
Diffstat (limited to 'openshift-storage-libs')
-rw-r--r--openshift-storage-libs/openshiftstoragelibs/heketi_ops.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/openshift-storage-libs/openshiftstoragelibs/heketi_ops.py b/openshift-storage-libs/openshiftstoragelibs/heketi_ops.py
index f98a8d7..38e09cd 100644
--- a/openshift-storage-libs/openshiftstoragelibs/heketi_ops.py
+++ b/openshift-storage-libs/openshiftstoragelibs/heketi_ops.py
@@ -623,6 +623,8 @@ def heketi_device_add(heketi_client_node, heketi_server_url, device_name,
heketi_server_url, device_name, node_id, json_arg, admin_key, user)
cmd = TIMEOUT_PREFIX + cmd
out = heketi_cmd_run(heketi_client_node, cmd)
+ if json_arg:
+ return json.loads(out)
return out