Ignore os-cloud-config deprecation warning

tripleoclient users really have no control over whether the code imports
os-cloud-config or not and shows a deprecation warning. We still have to
rely on os-cloud-config in case someone is deploying old templates. But
in the meantime, we should not spam the user with the deprecation
warning every time they use tripleoclient.

Change-Id: I54e4c6f117c587fee05fcd5fc3f5c9feee61785f
Closes-Bug: #1670817
This commit is contained in:
James Slagle
2017-03-07 15:42:57 -05:00
parent ff6306f494
commit 398f954905

View File

@@ -30,8 +30,6 @@ import yaml
from heatclient.common import template_utils
from heatclient import exc as hc_exc
from keystoneclient import exceptions as kscexc
from os_cloud_config import keystone
from os_cloud_config.utils import clients as occ_clients
from osc_lib.command import command
from osc_lib import exceptions as oscexc
from osc_lib.i18n import _
@@ -47,6 +45,13 @@ from tripleoclient.workflows import parameters as workflow_params
from tripleoclient.workflows import plan_management
level = logging.getLogger('os_cloud_config').getEffectiveLevel()
logging.getLogger('os_cloud_config').setLevel(logging.ERROR)
from os_cloud_config import keystone
from os_cloud_config.utils import clients as occ_clients
logging.getLogger('os_cloud_config').setLevel(level)
class DeployOvercloud(command.Command):
"""Deploy Overcloud"""