Commit c3eefa5d authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

request: use requester state as default state for the request

Default state for the requested instance should be the one of the requester
parent 1656059d
......@@ -89,7 +89,7 @@ class Recipe(object):
Possible names depend on requested partition's software type.
state (optional)
Requested state, default value is "started".
Requested state, default value is the state of the requester.
Output:
See "return" input key.
......@@ -119,7 +119,8 @@ class Recipe(object):
))
slave = options.get('slave', 'false').lower() in \
librecipe.GenericBaseRecipe.TRUE_VALUES
requested_state = options.get('state', 'started')
# By default
requested_state = options.get('state', buildout['slap-connection'].get('requested','started'))
slap = slapmodule.slap()
slap.initializeConnection(
options['server-url'],
......
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