-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented the dropdown menu for accounts at the create cluster adve…
…nced settings page
- Loading branch information
1 parent
fbb862b
commit f230cd1
Showing
4 changed files
with
72 additions
and
5 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
15 changes: 15 additions & 0 deletions
15
deploy-board/deploy_board/webapp/helpers/accounts_helper.py
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from deploy_board.webapp.helpers.rodimus_client import RodimusClient | ||
import logging | ||
|
||
log = logging.getLogger(__name__) | ||
|
||
rodimus_client = RodimusClient() | ||
|
||
|
||
def get_all_accounts(request): | ||
try: | ||
return rodimus_client.get("/accounts", request.teletraan_user_id.token, {"provider": "AWS"}) | ||
except Exception as e: | ||
log.error(f"Can't get all accounts: error = {e}") | ||
# return None for backward-compatibility | ||
return None |