Lint: E231 missing whitespace after ':'

This commit is contained in:
Joshua Boniface 2020-11-07 12:34:47 -05:00
parent 905b81c47d
commit 292ccdd94e
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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']: