We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3b08300 + 08cee62 commit a04828aCopy full SHA for a04828a
1 file changed
kvmagent/kvmagent/plugins/ha_plugin.py
@@ -999,10 +999,10 @@ def update_shareblock_vm_ha_params(vg_uuids):
999
return
1000
with open(SHAREBLOCK_VM_HA_PARAMS_PATH, 'r+') as f:
1001
cmd = f.read().strip()
1002
- if len(cmd) == 0:
+ if len(cmd) == 0 or cmd == '{}':
1003
1004
1005
- cmd_json = jsonobject.loads(cmd)
+ cmd_json = json.loads(cmd)
1006
cmd_json["vgUuids"] = vg_uuids
1007
f.seek(0)
1008
f.truncate(0)
0 commit comments