Add exception thrown by slapproxy as well.

parent 3a48a924
...@@ -134,7 +134,7 @@ class Recipe(object): ...@@ -134,7 +134,7 @@ class Recipe(object):
try: try:
options['connection-%s' % param] = str( options['connection-%s' % param] = str(
instance.getConnectionParameter(param)) instance.getConnectionParameter(param))
except slapmodule.NotFoundError: except (slapmodule.NotFoundError, slapmodule.ServerError):
options['connection-%s' % param] = '' options['connection-%s' % param] = ''
if self.failed is None: if self.failed is None:
self.failed = param self.failed = param
...@@ -144,7 +144,7 @@ class Recipe(object): ...@@ -144,7 +144,7 @@ class Recipe(object):
# Check instance status to know if instance has been deployed # Check instance status to know if instance has been deployed
try: try:
status = self.instance.getState() status = self.instance.getState()
except slapmodule.NotFoundError: except (slapmodule.NotFoundError, slapmodule.ServerError):
status = 'not ready yet, please try again' status = 'not ready yet, please try again'
except AttributeError: except AttributeError:
status = 'unknown' status = 'unknown'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment