diff --git a/apps/crc_proposal_end.py b/apps/crc_proposal_end.py index b4447d7..5890da7 100755 --- a/apps/crc_proposal_end.py +++ b/apps/crc_proposal_end.py @@ -34,7 +34,8 @@ def app_logic(self, args: Namespace) -> None: Slurm.check_slurm_account_exists(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")) team_id = get_team_id(keystone_session, args.account) alloc_requests = get_active_requests(keystone_session, team_id) @@ -45,7 +46,9 @@ def app_logic(self, args: Namespace) -> None: try: alloc_requests = [get_most_recent_expired_request(keystone_session, team_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 a help ticket to the CRCD team. \033[0m \n") + 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 a " + "help ticket to the CRCD team. \033[0m \n") exit() for request in alloc_requests: diff --git a/apps/crc_sus.py b/apps/crc_sus.py index 46394bd..c8d67ce 100755 --- a/apps/crc_sus.py +++ b/apps/crc_sus.py @@ -70,7 +70,9 @@ def app_logic(self, args: Namespace) -> None: try: 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 a help ticket to the CRCD team. \033[0m \n") + 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 " + "a help ticket to the CRCD team. \033[0m \n") exit() per_cluster_totals = get_per_cluster_totals(keystone_session, alloc_requests, diff --git a/apps/crc_usage.py b/apps/crc_usage.py index e5dd9e4..34b9020 100755 --- a/apps/crc_usage.py +++ b/apps/crc_usage.py @@ -110,7 +110,9 @@ def app_logic(self, args: Namespace) -> None: try: 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 a help ticket to the CRCD team. \033[0m \n") + 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 " + "a help ticket to the CRCD team. \033[0m \n") exit() clusters = get_enabled_cluster_ids(keystone_session)