diff --git a/slapos/recipe/request.py b/slapos/recipe/request.py index 80b247beeaf21e14a44199d1b09ff3f74198e1ca..679c4d185e25e4d5340de3c2284c66956e75bc8f 100644 --- a/slapos/recipe/request.py +++ b/slapos/recipe/request.py @@ -77,16 +77,11 @@ class Recipe(object): options['name'], partition_parameter_kw=partition_parameter_kw, filter_kw=filter_kw) - result = {} for param in self.return_parameters: try: - result[param] = instance.getConnectionParameter(param) + options['connection-%s' % param] = instance.getConnectionParameter(param) except slapmodule.NotFoundError: - result[param] = None - - # Return the connections parameters in options dict - for key, value in result.items(): - options['connection-%s' % key] = value + options['connection-%s' % param] = '' def install(self): return []