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): ...@@ -83,7 +83,7 @@ class Recipe(object):
Possible names depend on requested partition's software type. Possible names depend on requested partition's software type.
state (optional) state (optional)
Requested state, default value is "started". Requested state, default value is the state of the requester.
Output: Output:
See "return" input key. See "return" input key.
...@@ -113,7 +113,8 @@ class Recipe(object): ...@@ -113,7 +113,8 @@ class Recipe(object):
)) ))
slave = options.get('slave', 'false').lower() in \ slave = options.get('slave', 'false').lower() in \
librecipe.GenericBaseRecipe.TRUE_VALUES 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 = slapmodule.slap()
slap.initializeConnection( slap.initializeConnection(
options['server-url'], 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