formatting
This commit is contained in:
parent
72bc07f112
commit
fc5e6ebf51
1 changed files with 9 additions and 3 deletions
|
|
@ -680,14 +680,20 @@ class User(BaseModel):
|
||||||
access_key_2_last_rotated = "N/A"
|
access_key_2_last_rotated = "N/A"
|
||||||
elif len(self.access_keys) == 1:
|
elif len(self.access_keys) == 1:
|
||||||
access_key_1_active = "true"
|
access_key_1_active = "true"
|
||||||
access_key_1_last_rotated = self.access_keys[0].create_date.strftime(date_format)
|
access_key_1_last_rotated = self.access_keys[0].create_date.strftime(
|
||||||
|
date_format
|
||||||
|
)
|
||||||
access_key_2_active = "false"
|
access_key_2_active = "false"
|
||||||
access_key_2_last_rotated = "N/A"
|
access_key_2_last_rotated = "N/A"
|
||||||
else:
|
else:
|
||||||
access_key_1_active = "true"
|
access_key_1_active = "true"
|
||||||
access_key_1_last_rotated = self.access_keys[0].create_date.strftime(date_format)
|
access_key_1_last_rotated = self.access_keys[0].create_date.strftime(
|
||||||
|
date_format
|
||||||
|
)
|
||||||
access_key_2_active = "true"
|
access_key_2_active = "true"
|
||||||
access_key_2_last_rotated = self.access_keys[1].create_date.strftime(date_format)
|
access_key_2_last_rotated = self.access_keys[1].create_date.strftime(
|
||||||
|
date_format
|
||||||
|
)
|
||||||
|
|
||||||
return "{0},{1},{2},{3},{4},{5},not_supported,false,{6},{7},{8},{9},false,N/A,false,N/A".format(
|
return "{0},{1},{2},{3},{4},{5},not_supported,false,{6},{7},{8},{9},false,N/A,false,N/A".format(
|
||||||
self.name,
|
self.name,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue