X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=common%2Fpython%2Frift%2Fmano%2Futils%2Fjuju_api.py;h=b452b8a5e01090a992506d287fef39b135e687e1;hb=52558f6f42f4e636cc319664b834fb4a7f188957;hp=3d7b369ffa77aa53137c7c2779453d0c36e275ec;hpb=07da3570c19de04f015ade251dba8412daf2e280;p=osm%2FSO.git diff --git a/common/python/rift/mano/utils/juju_api.py b/common/python/rift/mano/utils/juju_api.py index 3d7b369f..b452b8a5 100644 --- a/common/python/rift/mano/utils/juju_api.py +++ b/common/python/rift/mano/utils/juju_api.py @@ -360,8 +360,8 @@ class JujuApi(object): # Optimizing calls to Juju, as currently we deploy only 1 unit per # service. - if self.service == service and len(self.units): - return self.units + # if self.service == service and len(self.units): + # return self.units if env is None: env = self._get_env() @@ -693,9 +693,7 @@ class JujuApi(object): except Exception as e: msg = "{}: Resolve on unit {}: {}". \ format(self, unit, e) - self.log.error(msg) - self.log.exception(e) - raise JujuResolveError(msg) + self.log.warn(msg) @asyncio.coroutine def resolve_error(self, service=None, status=None, env=None):