commit 1e84c93dc8e611ddebebff24bd782a802f000e6f
Author: Kirill Zaitsev <email address hidden>
Date: Sun Jun 14 14:02:27 2015 +0300
Handle errors during glance image updates correctly
Before an UnboundLocalError would occur in case an error would happen
during image updates, because of incorrect referencing of a variable.
Moreover the error was muted by exceptions.handle with ignore=True,
and could result in an incorrect success message.
This change removes references to unused image variable and allows
exceptions to be handled by the function, that calls image_update.
Change-Id: I35ea98a146690565582dd9beea62941f97d32474
Closes-Bug: #1464991
(cherry picked from commit 7eb4e3595c5a30f95d976ea84493453730f3c806)
Reviewed: https:/ /review. openstack. org/194614 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=1e84c93dc8e 611ddebebff24bd 782a802f000e6f
Committed: https:/
Submitter: Jenkins
Branch: stable/kilo
commit 1e84c93dc8e611d debebff24bd782a 802f000e6f
Author: Kirill Zaitsev <email address hidden>
Date: Sun Jun 14 14:02:27 2015 +0300
Handle errors during glance image updates correctly
Before an UnboundLocalError would occur in case an error would happen
during image updates, because of incorrect referencing of a variable.
Moreover the error was muted by exceptions.handle with ignore=True,
and could result in an incorrect success message.
This change removes references to unused image variable and allows
exceptions to be handled by the function, that calls image_update.
Change-Id: I35ea98a1466905 65582dd9beea629 41f97d32474 95d976ea8449345 3730f3c806)
Closes-Bug: #1464991
(cherry picked from commit 7eb4e3595c5a30f