lint
This commit is contained in:
parent
66c9d15ca8
commit
0e825a5048
2 changed files with 3 additions and 3 deletions
|
|
@ -81,7 +81,7 @@ def get_secret_name_from_arn(secret_id):
|
|||
# split the arn by colon
|
||||
# then get the last value which is the name appended with a random string
|
||||
# then remove the random string
|
||||
secret_id = '-'.join(secret_id.split(':')[-1].split('-')[:-1])
|
||||
secret_id = "-".join(secret_id.split(":")[-1].split("-")[:-1])
|
||||
return secret_id
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue