Commit 6c1fd542 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 af181db0
......@@ -83,7 +83,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.
......@@ -113,7 +113,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