ask for confirmation on delete operation
I think that delete/destroy operation such as "onevm delete" should request confirmation before doing so to avoid mistakes and unwanted deletion.
For possible wrappers above those scripts, an option could avoid asking so (such as onvm -force delete ..)
#1 Updated by olivier sallou over 10 years ago
- File request_410.patch added
I join a git patch on oneuser, oneimage,onehost,oneimage and onevnet scripts to add a confirmation prompt on delete operations.
If delete is done with additional force option, no prompt is requested to the user.
onevm delete 1
Are you sure... [Y/n]?
If not Y, process exits.
onevm delete force 1