Skip to content

'gam whatis' exit status is incorrect for non-existent entries #1934

Description

@daethnir

The issue tracker is for reporting product deficiencies. "How do I?" questions should be posted to the discussion forum at https://groups.google.com/group/google-apps-manager. When in doubt, start at the discussion forum and return here only when instructed to do so.

Full steps to reproduce the issue:

  1. do gam whatis on a non-existent entity. e.g. if your domain is 'example.com' and 'wbagg' does not exist, then
$ gam whatis wbagg@example.com; echo "Exit stat was $?"

ERROR: There are no scopes authorized for the API(s): Cloud Identity API - User Invitations

Exit was 15

Expected outcome (what are you trying to do?):

  • Should not show ERROR text
  • Should exit with either ENTITY_DOES_NOT_EXIST_RC (56) or ENTITY_IS_UKNOWN_RC (59)
  • I believe it used to exit 59

Actual outcome (what errors or bad behavior do you see instead?):

Showing ERROR text to screen, and exiting 15 (NO_SCOPES_FOR_API_RC )

Running on Gam 7.46.02:

GAM 7.46.02 - https://github.com/GAM-team/GAM - pyinstaller
GAM Team <google-apps-manager@googlegroups.com>
Python 3.14.6 64-bit final
Linux Ubuntu 24.04 Noble Numbat x86_64

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions