mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-03 20:20:39 -06:00
cli: Fix some comment spacing
This commit is contained in:
parent
b9cb73ec47
commit
00e0057868
@ -919,11 +919,11 @@ def get_memballoon(guest, sc_opts):
|
||||
if dev:
|
||||
guest.add_device(dev)
|
||||
|
||||
|
||||
#############################
|
||||
# Common CLI option/group #
|
||||
#############################
|
||||
|
||||
|
||||
def add_connect_option(parser):
|
||||
parser.add_option("", "--connect", metavar="URI", dest="connect",
|
||||
help=_("Connect to hypervisor with libvirt URI"))
|
||||
@ -1043,12 +1043,12 @@ def add_fs_option(devg):
|
||||
"--filesystem /my/source/dir,/dir/in/guest\n"
|
||||
"--filesystem template_name,/,type=template"))
|
||||
|
||||
|
||||
#############################################
|
||||
# CLI complex parsing helpers #
|
||||
# (for options like --disk, --network, etc. #
|
||||
#############################################
|
||||
|
||||
|
||||
def get_opt_param(opts, dictnames, val=None):
|
||||
if type(dictnames) is not list:
|
||||
dictnames = [dictnames]
|
||||
@ -1142,10 +1142,6 @@ def parse_optstr(optstr, basedict=None, remove_first=None,
|
||||
|
||||
|
||||
|
||||
#######################
|
||||
# Guest param parsing #
|
||||
#######################
|
||||
|
||||
######################
|
||||
# --numatune parsing #
|
||||
######################
|
||||
@ -1167,11 +1163,11 @@ def parse_numatune(guest, optstring):
|
||||
if opts:
|
||||
raise ValueError(_("Unknown options %s") % opts.keys())
|
||||
|
||||
|
||||
##################
|
||||
# --vcpu parsing #
|
||||
##################
|
||||
|
||||
|
||||
def parse_vcpu(guest, optstring, default_vcpus=None):
|
||||
"""
|
||||
Helper to parse --vcpu string
|
||||
@ -1206,11 +1202,11 @@ def parse_vcpu(guest, optstring, default_vcpus=None):
|
||||
if opts:
|
||||
raise ValueError(_("Unknown options %s") % opts.keys())
|
||||
|
||||
|
||||
#################
|
||||
# --cpu parsing #
|
||||
#################
|
||||
|
||||
|
||||
def parse_cpu(guest, optstring):
|
||||
default_dict = {
|
||||
"force": [],
|
||||
@ -1261,11 +1257,11 @@ def parse_cpu(guest, optstring):
|
||||
if opts:
|
||||
raise ValueError(_("Unknown options %s") % opts.keys())
|
||||
|
||||
|
||||
##################
|
||||
# --boot parsing #
|
||||
##################
|
||||
|
||||
|
||||
def parse_boot(guest, optstring):
|
||||
"""
|
||||
Helper to parse --boot string
|
||||
@ -1318,11 +1314,11 @@ def parse_boot(guest, optstring):
|
||||
if opts:
|
||||
raise ValueError(_("Unknown options %s") % opts.keys())
|
||||
|
||||
|
||||
######################
|
||||
# --security parsing #
|
||||
######################
|
||||
|
||||
|
||||
def parse_security(guest, security):
|
||||
seclist = listify(security)
|
||||
secopts = seclist and seclist[0] or None
|
||||
|
Loading…
Reference in New Issue
Block a user