mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
missed converting datetime to string before returning back to caller.
This commit is contained in:
parent
33bb862ee9
commit
30df220ae5
@ -247,7 +247,7 @@ def create_api(name, description, cloneFrom=None,
|
||||
api = conn.create_rest_api(name=name, description=description, cloneFrom=cloneFrom)
|
||||
else:
|
||||
api = conn.create_rest_api(name=name, description=description)
|
||||
|
||||
api = _convert_datetime_str(api)
|
||||
return {'created': True, 'restapi': api} if api else {'created': False}
|
||||
except ClientError as e:
|
||||
return {'created': False, 'error': salt.utils.boto3.get_error(e)}
|
||||
|
Loading…
Reference in New Issue
Block a user