Commit 009709b5 authored by Romain Courteaud's avatar Romain Courteaud Committed by Antoine Catton

Request recipe should not fail if requested partition is not yet instanciated.

parent e9db1601
...@@ -79,7 +79,10 @@ class Recipe(object): ...@@ -79,7 +79,10 @@ class Recipe(object):
result = {} result = {}
for param in self.return_parameters: for param in self.return_parameters:
try:
result[param] = instance.getConnectionParameter(param) result[param] = instance.getConnectionParameter(param)
except slapmodule.NotFoundError:
result[param] = None
# Return the connections parameters in options dict # Return the connections parameters in options dict
for key, value in result.items(): for key, value in result.items():
......
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