Skip to content

Commit 8301678

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Silence warnings from openstacksdk"
2 parents a2f877f + 23da7b7 commit 8301678

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

openstackclient/shell.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"""Command-line interface to the OpenStack APIs"""
1818

1919
import sys
20+
import warnings
2021

2122
from osc_lib.api import auth
2223
from osc_lib.command import commandmanager
@@ -44,6 +45,10 @@ def __init__(self):
4445
# Assume TLS host certificate verification is enabled
4546
self.verify = True
4647

48+
# ignore warnings from openstacksdk since our users can't do anything
49+
# about them
50+
warnings.filterwarnings('ignore', module='openstack')
51+
4752
def build_option_parser(self, description, version):
4853
parser = super(OpenStackShell, self).build_option_parser(
4954
description,

0 commit comments

Comments
 (0)