diff --git a/api-daemon/pvcapid/helper.py b/api-daemon/pvcapid/helper.py index 2400acb2..e47e29af 100755 --- a/api-daemon/pvcapid/helper.py +++ b/api-daemon/pvcapid/helper.py @@ -730,7 +730,7 @@ def vm_flush_locks(vm): retdata = retdata[0] if retdata['state'] not in ['stop', 'disable']: - return {"message":"VM must be stopped to flush locks"}, 400 + return {"message": "VM must be stopped to flush locks"}, 400 zk_conn = pvc_common.startZKConnection(config['coordinators']) retflag, retdata = pvc_vm.flush_locks(zk_conn, vm) diff --git a/client-cli/cli_lib/common.py b/client-cli/cli_lib/common.py index e22fb49f..a40d3f0d 100644 --- a/client-cli/cli_lib/common.py +++ b/client-cli/cli_lib/common.py @@ -171,7 +171,7 @@ def call_api(config, operation, request_uri, headers={}, params=None, data=None, ) except Exception as e: message = 'Failed to connect to the API: {}'.format(e) - response = ErrorResponse({'message':message}, 500) + response = ErrorResponse({'message': message}, 500) # Display debug output if config['debug']: