in functions/source/account_create.py [0:0]
def sc_initial_failure(input_params, message):
'''Update DynamoDB Table with SC Failure'''
result = None
account_name = generate_account_name(input_params)
account_id = 'NOT_APPLICABLE'
cmd_status = 'NOT_PROVISIONED'
try:
result = update_account_status(account_name, account_id,
cmd_status, message)
LOGGER.info('Update record %s, %s, %s',
account_name, account_id, cmd_status)
except Exception as exe:
LOGGER.error('Unable to update record for: %s,%s',
account_name, str(exe))
return result