Commit f33a9ecc authored by Łukasz Nowak's avatar Łukasz Nowak

Fallback aggressively.

It is hard to remove elements from sequence, and get will return value of
available key, but resetting sets to '', so fallback again to started state.
parent fd5427b3
......@@ -588,8 +588,10 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
if 'software_type' not in kw:
kw['software_type'] = sequence.get('requested_software_type',
'requested_software_type')
default_state = 'started'
if 'state' not in kw:
kw['state'] = sequence.get('software_instance_state', 'started')
kw['state'] = sequence.get('software_instance_state', default_state) \
or default_state
person.requestSoftwareInstance(
software_release=software_release.getUrlString(),
......
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