Skip auth on st2 whoami command.
We really just want to read a username from config, etc. and don't want
to perform any additional auth requests.
@@ -52,6 +52,7 @@ from st2client.exceptions.operations import OperationFailureException
from st2client.utils.logging import LogLevelFilter, set_log_level_for_all_loggers
from st2client.commands.auth import TokenCreateCommand
from st2client.commands.auth import LoginCommand
+from st2client.commands.auth import WhoamiCommand
__all__ = [
@@ -68,7 +69,8 @@ class Shell(BaseCLIApp):
SKIP_AUTH_CLASSES = [
TokenCreateCommand.__name__,
- LoginCommand.__name__
+ LoginCommand.__name__,
+ WhoamiCommand.__name__
]
def __init__(self):
