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: I4c596cd0b591ef5985e2727fe204518d74a61332
Closes-Bug: #1558173
(cherry picked from commit 3e4da833e5e52064615059decce1b58c4e333ea9)
Reviewed: https:/ /review. openstack. org/370721 /git.openstack. org/cgit/ openstack/ fuel-web/ commit/ ?id=1585bbe171f c8011b493a52abd 7ee3e55e9d15c0
Committed: https:/
Submitter: Jenkins
Branch: stable/8.0
commit 1585bbe171fc801 1b493a52abd7ee3 e55e9d15c0
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 4615059decce1b5 8c4e333ea9)
Closes-Bug: #1558173
(cherry picked from commit 3e4da833e5e5206