Merge pull request #932 from grahamhar/master
Update list IAM AccessKeys
This commit is contained in:
commit
956f44d46c
3 changed files with 8 additions and 5 deletions
|
|
@ -177,7 +177,7 @@ class AccessKey(BaseModel):
|
|||
self.status = 'Active'
|
||||
self.create_date = datetime.strftime(
|
||||
datetime.utcnow(),
|
||||
"%Y-%m-%d-%H-%M-%S"
|
||||
"%Y-%m-%dT%H:%M:%SZ"
|
||||
)
|
||||
|
||||
def get_cfn_attribute(self, attribute_name):
|
||||
|
|
|
|||
|
|
@ -901,6 +901,7 @@ LIST_ACCESS_KEYS_TEMPLATE = """<ListAccessKeysResponse>
|
|||
<UserName>{{ user_name }}</UserName>
|
||||
<AccessKeyId>{{ key.access_key_id }}</AccessKeyId>
|
||||
<Status>{{ key.status }}</Status>
|
||||
<CreateDate>{{ key.create_date }}</CreateDate>
|
||||
</member>
|
||||
{% endfor %}
|
||||
</AccessKeyMetadata>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue