Commit 64706d92 authored by Łukasz Nowak's avatar Łukasz Nowak

Fetch URL only once.

parent dffafc68
......@@ -160,7 +160,8 @@ promise_kw = {\n
\'software_release\': software_release_url_string,\n
\'shared\': is_slave,\n
}\n
context.REQUEST.set(\'request_instance\', request_software_instance.getRelativeUrl())\n
request_software_instance_url = request_software_instance.getRelativeUrl()\n
context.REQUEST.set(\'request_instance\', request_software_instance_url)\n
if (root_state == "started"):\n
request_software_instance.requestStart(**promise_kw)\n
elif (root_state == "stopped"):\n
......@@ -171,7 +172,7 @@ elif (root_state == "destroyed"):\n
else:\n
raise ValueError, "state should be started, stopped or destroyed"\n
\n
predecessor_list = requester_instance.getPredecessorList() + [request_software_instance.getRelativeUrl()]\n
predecessor_list = requester_instance.getPredecessorList() + [request_software_instance_url]\n
\n
assert predecessor_list == list(set(predecessor_list))\n
\n
......
23
\ No newline at end of file
24
\ No newline at end of file
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