-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
#!/usr/bin/env python | ||
# This Enables and Disables individuals OIDC token to access secrets from vault | ||
"""Enables and Disables an OIDC token to access secrets from HashiCorp Vault.""" | ||
import sys | ||
|
||
from manifester.helpers import Vault | ||
|
||
if __name__ == '__main__': | ||
if __name__ == "__main__": | ||
with Vault() as vclient: | ||
if sys.argv[-1] == '--login': | ||
if sys.argv[-1] == "--login": | ||
vclient.login() | ||
elif sys.argv[-1] == '--status': | ||
elif sys.argv[-1] == "--status": | ||
vclient.status() | ||
else: | ||
vclient.logout() |