Merge "Silence warnings from openstacksdk"

This commit is contained in:
Zuul 2023-05-03 16:51:35 +00:00 committed by Gerrit Code Review
commit 83016780c7

View File

@ -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,