Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better handle crc-usage display when user is not permitted to view output #271

Open
Comeani opened this issue Nov 6, 2024 · 0 comments
Open

Comments

@Comeani
Copy link
Contributor

Comeani commented Nov 6, 2024

Kim sent the following recently:

When I query allocation under kimwong, I encounter no error; however, I see the following error when I'm under a non-administrative account. A user asked us during office hour because he encounter the same error.

(base) [gnowmik@login0 ~]$ crc-usage rceschin
Please enter your CRC login password:
 
No active allocation information found in accounting system for 'rceschin'!
 
Showing usage information for most recently expired Resource Allocation Request:
list index out of range
(base) [gnowmik@login0 ~]$

The view in the API is working as intended in that it gives him no allocations back because he doesn't belong to rceschin, but the index out of range error is confusing. We should fix this in the wrapper output, something like "you don't have access to TEAMNAME's allocation info because you're not a user under their group"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant