]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Big Switch: Only update hash header on success
authorKevin Benton <blak111@gmail.com>
Fri, 25 Jul 2014 19:25:39 +0000 (12:25 -0700)
committerKevin Benton <kevinbenton@buttewifi.com>
Mon, 4 Aug 2014 20:16:54 +0000 (20:16 +0000)
commitb8cf45218714937681d7df2e5b9d7d440cb2edd9
tree90af993cdfe8321634716cefd35208e3e0956e39
parent9652d2e076aad2864d19db77c9b403f9e81e1f24
Big Switch: Only update hash header on success

This patch moves the hash update call into the success block
of the server manager so the database isn't updated with
a hash header from an error response. Additionally, it prevents
the hash from being updated to an empty value if the hash header
is not present in the response.

Closes-Bug: #1348766
Change-Id: I512d01f9bb91b208dd58883d2464951ecc6748e1
neutron/plugins/bigswitch/db/consistency_db.py
neutron/plugins/bigswitch/servermanager.py
neutron/tests/unit/bigswitch/test_servermanager.py