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