diff options
author | Zuul <zuul@review.opendev.org> | 2023-05-03 16:51:35 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2023-05-03 16:51:35 +0000 |
commit | 83016780c793819b0d6d7de9fdce7e059ad736bf (patch) | |
tree | aa513d07c6b358cc11d75396cceefbd581e08014 | |
parent | a2f877f70c460769337fab5fd2d65cca0ba9091c (diff) | |
parent | 23da7b73a285543745d4ea77aad4286ad59d474e (diff) | |
download | python-openstackclient-83016780c793819b0d6d7de9fdce7e059ad736bf.tar.gz |
Merge "Silence warnings from openstacksdk"
-rw-r--r-- | openstackclient/shell.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/openstackclient/shell.py b/openstackclient/shell.py index bc88e1f1..1be298be 100644 --- a/openstackclient/shell.py +++ b/openstackclient/shell.py @@ -17,6 +17,7 @@ """Command-line interface to the OpenStack APIs""" import sys +import warnings from osc_lib.api import auth from osc_lib.command import commandmanager @@ -44,6 +45,10 @@ class OpenStackShell(shell.OpenStackShell): # Assume TLS host certificate verification is enabled self.verify = True + # ignore warnings from openstacksdk since our users can't do anything + # about them + warnings.filterwarnings('ignore', module='openstack') + def build_option_parser(self, description, version): parser = super(OpenStackShell, self).build_option_parser( description, |