missed converting datetime to string before returning back to caller.

This commit is contained in:
Winston Liu 2015-12-07 16:00:16 -08:00
parent 33bb862ee9
commit 30df220ae5

View File

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