Skip to content

Commit ac2b6a7

Browse files
committed
fixed linter comments
1 parent 709270f commit ac2b6a7

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

delinea/secrets/server.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ def get_secret_by_path(self, secret_path, fetch_file_attachments=True):
368368
fetch_file_attachments=fetch_file_attachments,
369369
query_params=params,
370370
)
371-
371+
372372
def search_secrets(self, query_params=None):
373373
"""Get Secrets from Secret Server
374374
@@ -414,13 +414,14 @@ def get_secret_ids_by_folderid(self, folder_id):
414414
secrets = json.loads(response)
415415
except json.JSONDecodeError:
416416
raise SecretServerError(response)
417-
417+
418418
secret_ids = []
419-
for secret in secrets['records']:
420-
secret_ids.append(secret['id'])
419+
for secret in secrets["records"]:
420+
secret_ids.append(secret["id"])
421421

422422
return secret_ids
423423

424+
424425
class SecretServerV0(SecretServer):
425426
"""A class that uses an *OAuth2 Bearer Token* to access the Secret Server
426427
REST API. It uses the :attr:`username` and :attr:`password` to access the

example.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
)
77

88
if __name__ == "__main__":
9-
109
creds = {
1110
"username": os.getenv("TSS_USERNAME"),
1211
"password": os.getenv("TSS_PASSWORD"),

0 commit comments

Comments
 (0)