mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-23 17:34:21 +03:00
cli: unify tag style
Unify tag style, looks a little better. Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
This commit is contained in:
parent
55d5b35e50
commit
155bd7da8f
@ -187,9 +187,9 @@ def setupLogging(appname, debug_stdout, do_quiet, cli_app=True):
|
|||||||
logging.debug("Launched with command line: %s", " ".join(sys.argv))
|
logging.debug("Launched with command line: %s", " ".join(sys.argv))
|
||||||
|
|
||||||
|
|
||||||
#######################################
|
##############################
|
||||||
# Libvirt connection helpers #
|
# Libvirt connection helpers #
|
||||||
#######################################
|
##############################
|
||||||
|
|
||||||
def getConnection(uri):
|
def getConnection(uri):
|
||||||
logging.debug("Requesting libvirt URI %s", (uri or "default"))
|
logging.debug("Requesting libvirt URI %s", (uri or "default"))
|
||||||
@ -548,9 +548,9 @@ def set_os_variant(obj, distro_type, distro_variant):
|
|||||||
obj.os_variant = distkey
|
obj.os_variant = distkey
|
||||||
|
|
||||||
|
|
||||||
#############################
|
###########################
|
||||||
# Common CLI option/group #
|
# Common CLI option/group #
|
||||||
#############################
|
###########################
|
||||||
|
|
||||||
def add_connect_option(parser, invoker=None):
|
def add_connect_option(parser, invoker=None):
|
||||||
if invoker == "virt-xml":
|
if invoker == "virt-xml":
|
||||||
@ -1413,9 +1413,9 @@ class ParserBoot(VirtCLIParser):
|
|||||||
VirtCLIParser._parse(self, opts, inst)
|
VirtCLIParser._parse(self, opts, inst)
|
||||||
|
|
||||||
|
|
||||||
######################
|
###################
|
||||||
# --idmap parsing #
|
# --idmap parsing #
|
||||||
######################
|
###################
|
||||||
|
|
||||||
class ParserIdmap(VirtCLIParser):
|
class ParserIdmap(VirtCLIParser):
|
||||||
def _init_params(self):
|
def _init_params(self):
|
||||||
@ -2129,9 +2129,9 @@ class ParserSound(VirtCLIParser):
|
|||||||
return VirtCLIParser._parse(self, opts, inst)
|
return VirtCLIParser._parse(self, opts, inst)
|
||||||
|
|
||||||
|
|
||||||
#####################
|
#########################
|
||||||
# --host-device parsing #
|
# --host-device parsing #
|
||||||
#####################
|
#########################
|
||||||
|
|
||||||
class ParserHostdev(VirtCLIParser):
|
class ParserHostdev(VirtCLIParser):
|
||||||
def _init_params(self):
|
def _init_params(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user