summaryrefslogtreecommitdiff
path: root/openstackclient/shell.py
diff options
context:
space:
mode:
Diffstat (limited to 'openstackclient/shell.py')
-rw-r--r--openstackclient/shell.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/openstackclient/shell.py b/openstackclient/shell.py
index 8fdf0b61..2e384f8f 100644
--- a/openstackclient/shell.py
+++ b/openstackclient/shell.py
@@ -182,6 +182,12 @@ class OpenStackShell(shell.OpenStackShell):
# get_one_Cloud()'s validation to avoid loading plugins
validate = cmd.auth_required
+ # Force skipping auth for commands that do not need it
+ # NOTE(dtroyer): This is here because ClientManager does not have
+ # visibility into the Command object to get
+ # auth_required. It needs to move into osc-lib
+ self.client_manager._auth_required = cmd.auth_required
+
# Validate auth options
self.cloud = self.cloud_config.get_one_cloud(
cloud=self.options.cloud,