Project

General

Profile

Bug #2868

"zoneadm .. uninstall -h" superfluosly asks for confirmation

Added by Jim Klimov over 8 years ago. Updated almost 8 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
2012-06-11
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

The request for help "-h" (and the dry-run "-n") ask for confirmation - whether the user really wants the zone destroyed. However, at least for the help text which does nothing related to the actual zone - only prints the help and exits - this confirmation request is a useless annoyance. Arguably likewise for the dry-run as well.

# zoneadm -z zone1 uninstall -h
Are you sure you want to uninstall zone zone1 (y/[n])? y
Usage: uninstall: [-hFn]
usage:  uninstall [-F] [brand-specific args]
        Uninstall the configuration from the system.  The -F flag can be used
        to force the action.  All other arguments are passed to the brand
        uninstall function; see brands(5) for more information.

QUEST: If the help action was requested (-h), don't ask to confirm if the zone should be uninstalled. If possible, don't even require that an existing zone be specified.

#1

Updated by Ken Mays almost 8 years ago

  • Assignee set to OI illumos

Also available in: Atom PDF