`volume delete` only deletes last volume specified

Bug #1520541 reported by xiexs on 2015-11-27
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description

The "openstack volume delete" cannot delete multi volumes, and the reason is list as follows:
185 for volume in parsed_args.volumes:
186 volume_obj = utils.find_resource(
187 volume_client.volumes, volume)
188 if parsed_args.force:
189 volume_client.volumes.force_delete(volume_obj.id)
190 else:
191 volume_client.volumes.delete(volume_obj.id)

line 188:191 should be in the for loop.

summary: - "openstack volume delete" cannot delete multi volumes
+ "openstack volume delete" only deletes last volume
Changed in python-openstackclient:
importance: Undecided → Medium
status: New → In Progress
assignee: nobody → xiexs (xiexs)

Reviewed: https://review.openstack.org/250752
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=c27f9e3c6c8a781230cc5d19420b29a0c47e9bc6
Submitter: Jenkins
Branch: master

commit c27f9e3c6c8a781230cc5d19420b29a0c47e9bc6
Author: xiexs <email address hidden>
Date: Sat Nov 28 19:07:20 2015 +0800

    Fix a bug of "openstack volume delete"

    While multi volumes specified for the osc "openstack volume delete",
    only the last volume is deleted.
    This patch tries to fix it.

    Change-Id: I171b2869f85b29c88fda16eaf5bf163c55795df0
    Closes-Bug: #1520541

Changed in python-openstackclient:
status: In Progress → Fix Committed
summary: - "openstack volume delete" only deletes last volume
+ `volume delete` only deletes last volume specified

This issue was fixed in the openstack/python-openstackclient 2.0.0 release.

Changed in python-openstackclient:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers