]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Fix AccessKey deletion with bad credentials
authorZane Bitter <zbitter@redhat.com>
Mon, 8 Apr 2013 10:43:35 +0000 (12:43 +0200)
committerZane Bitter <zbitter@redhat.com>
Mon, 8 Apr 2013 10:43:35 +0000 (12:43 +0200)
commit36ab0d79cbb3489f6095f9dca65297a9a5f1451d
tree05e4dd98303220b45e247728aa67211b1d962956
parent4128aeed6213df08bb38a0046dae3d708e693d78
Fix AccessKey deletion with bad credentials

If an AccessKey could not be created, it also could not be deleted. This
change allows deletion of the resource to proceed even if the user does not
exist.

Fixes bug 1155824

Also fixes a bug that the actual key would never be deleted, because the
resource_id is set to None beforehand.

Change-Id: I34886410e3e25ad62e4eba537063f922b011e25a
heat/engine/resources/user.py
heat/tests/test_user.py