If the last location of the image is removed, image transitions back to queued.
This allows user to upload new data into the existing image record. By
preventing removal of the last location we prevent the image transition back to
queued.
This change also prevents doing the same operation via replacing the locations
with empty list.
Reviewed: https:/ /review. openstack. org/275737 /git.openstack. org/cgit/ openstack/ glance/ commit/ ?id=6179e1e9880 8548f1c12a2b667 84cac3c1e5ac0f
Committed: https:/
Submitter: Jenkins
Branch: master
commit 6179e1e98808548 f1c12a2b66784ca c3c1e5ac0f
Author: Erno Kuvaja <email address hidden>
Date: Tue Jan 19 13:37:05 2016 +0000
Prevent user to remove last location of the image
If the last location of the image is removed, image transitions back to queued.
This allows user to upload new data into the existing image record. By
preventing removal of the last location we prevent the image transition back to
queued.
This change also prevents doing the same operation via replacing the locations
with empty list.
SecurityImpact
DocImpact
APIImpact
Change-Id: Ieb03aaba887492 819f9c58aa67f7a cfcea81720e
Closes-Bug: #1525915