Fix pep8 F821 error
Change-Id: Idef9c90b57b67fae2e896de00cc8f647c238cae8
This commit is contained in:
parent
c023d63562
commit
95f9da9cd8
|
@ -280,9 +280,9 @@ class MuranoClass(dsl_types.MuranoClass, MuranoType, dslmeta.MetaProvider):
|
|||
for name in self.all_method_names:
|
||||
try:
|
||||
yield self.find_single_method(name)
|
||||
except exceptions.AmbiguousMethodName as e:
|
||||
except exceptions.AmbiguousMethodName:
|
||||
def func(*args, **kwargs):
|
||||
raise e
|
||||
raise
|
||||
yield murano_method.MuranoMethod(
|
||||
self, name, func, ephemeral=True)
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ class MistralClient(object):
|
|||
def _create_client(region):
|
||||
if not mistralcli:
|
||||
LOG.warning("Mistral client is not available")
|
||||
raise mistral_import_error
|
||||
raise ImportError("Import mistralcliet error")
|
||||
|
||||
mistral_settings = CONF.mistral
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ class ModelPolicyEnforcer(object):
|
|||
def _create_client(self):
|
||||
if not congress_client:
|
||||
# congress client was not imported
|
||||
raise congress_client_import_error
|
||||
raise ImportError("Import congresscliet error")
|
||||
return congress_client.Client(
|
||||
**auth_utils.get_session_client_parameters(
|
||||
service_type='policy',
|
||||
|
|
Loading…
Reference in New Issue