Accept both 200 and 202 if no particular result is awaited
When deferred task is started successfully API can return either 200
or 202 depending on task status. So, we should not rely on particular value
if caller did not set it (comparand) explcitly.
Reviewed: https:/ /review. openstack. org/293619 /git.openstack. org/cgit/ openstack/ fuel-web/ commit/ ?id=3e4da833e5e 52064615059decc e1b58c4e333ea9
Committed: https:/
Submitter: Jenkins
Branch: master
commit 3e4da833e5e5206 4615059decce1b5 8c4e333ea9
Author: Aleksey Kasatkin <email address hidden>
Date: Wed Mar 16 19:38:40 2016 +0200
Accept both 200 and 202 if no particular result is awaited
When deferred task is started successfully API can return either 200
or 202 depending on task status. So, we should not rely on particular value
if caller did not set it (comparand) explcitly.
Change-Id: I4c596cd0b591ef 5985e2727fe2045 18d74a61332
Closes-Bug: #1558173