It's too easy to accidentally delete a container rather than a snapshot

Bug #1828255 reported by Rod Smith
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The command to delete a container is:

lxc delete {container}/{snapshot}

Unfortunately, if the "/" is omitted, this command deletes {container} without any sort of prompting. It would be very helpful to add a prompt/verification when deleting the entire container to avoid mishaps. Don't ask me how I know that they happen.

Revision history for this message
Stéphane Graber (stgraber) wrote :

There is configurable prompting for those that want it. We also refuse to delete running containers.

Changed in lxc (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.