Commit c5bc5bcd authored by Vincent Pelletier's avatar Vincent Pelletier Committed by Sebastien Robin

Save a __setattr__ on construction.

parent 23d028a4
...@@ -29,6 +29,7 @@ import logging ...@@ -29,6 +29,7 @@ import logging
from slapos import slap as slapmodule from slapos import slap as slapmodule
class Recipe(object): class Recipe(object):
failed = None
def __init__(self, buildout, name, options): def __init__(self, buildout, name, options):
logger = logging.getLogger(name) logger = logging.getLogger(name)
...@@ -71,7 +72,6 @@ class Recipe(object): ...@@ -71,7 +72,6 @@ class Recipe(object):
options.get('name', name), partition_parameter_kw=partition_parameter_kw, options.get('name', name), partition_parameter_kw=partition_parameter_kw,
filter_kw=filter_kw, shared=isSlave) filter_kw=filter_kw, shared=isSlave)
self.failed = None
for param in return_parameters: for param in return_parameters:
try: try:
options['connection-%s' % param] = str( options['connection-%s' % param] = str(
......
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