Commit 145a2a94 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Julien Muchembled

request: use requester state as default state for the request

Default state for the requested instance should be the one of the requester
(cherry picked from commit 6c1fd542f991c74fbf10cb99bf7b09bb0e57ad93)
parent b6f99c47
...@@ -89,7 +89,7 @@ class Recipe(object): ...@@ -89,7 +89,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.
...@@ -119,7 +119,8 @@ class Recipe(object): ...@@ -119,7 +119,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