diff --git a/apps/crc_sus.py b/apps/crc_sus.py index c8d67ce..6b718af 100755 --- a/apps/crc_sus.py +++ b/apps/crc_sus.py @@ -59,16 +59,18 @@ def app_logic(self, args: Namespace) -> None: Slurm.check_slurm_account_exists(account_name=args.account) keystone_session = KeystoneClient(url=KEYSTONE_URL) - keystone_session.login(username=os.environ["USER"], password=getpass("Please enter your CRCD login password:\n")) + keystone_session.login(username=os.environ["USER"], + password=getpass("Please enter your CRCD login password:\n")) group_id = get_team_id(keystone_session, args.account) alloc_requests = get_active_requests(keystone_session, group_id) if not alloc_requests: print(f"\033[91m\033[1mNo active allocation information found in accounting system for '{args.account}'!\n") - print("Showing remaining service unit amounts for most recently expired Resource Allocation Request:\033[0m \n") + print( + "Showing remaining service unit amounts for most recently expired Resource Allocation Request:\033[0m \n") try: - alloc_requests = [get_most_recent_expired_request(keystone_session, group_id)] + alloc_requests = [get_most_recent_expired_request(keystone_session, group_id)] except IndexError: print("\033[91m\033[1mNo allocation information found. Either the group does not have any allocations, " "or you do not have permissions to view them. If you believe this to be a mistake, please submit " diff --git a/apps/crc_usage.py b/apps/crc_usage.py index 34b9020..1964a15 100755 --- a/apps/crc_usage.py +++ b/apps/crc_usage.py @@ -11,7 +11,6 @@ from prettytable import PrettyTable -from keystone_client import KeystoneClient from .utils.cli import BaseParser from .utils.keystone import * from .utils.system_info import Slurm @@ -98,7 +97,8 @@ def app_logic(self, args: Namespace) -> None: Slurm.check_slurm_account_exists(account_name=args.account) keystone_session = KeystoneClient(url=KEYSTONE_URL) - keystone_session.login(username=os.environ["USER"], password=getpass("Please enter your CRCD login password:\n")) + keystone_session.login(username=os.environ["USER"], + password=getpass("Please enter your CRCD login password:\n")) # Gather AllocationRequests from Keystone group_id = get_team_id(keystone_session, args.account)