Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
command_return_code = command_return[0]
command_return_msg = command_return[1]
call_success = True
if command_return_code != 0:
call_success = False
operation_id = str(uuid4())
return {'success': str(call_success),
'operating_system': platform,
'python_version': version,
'operation_id': operation_id,
'error_msg': command_return_msg,
'sfctl_version': get_cli_version_from_pkg(),
'timestamp': str(datetime.utcnow())}