mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-12-14 04:23:47 +03:00
examples: Fix white space
indent by 4 spaces one spaces around assignments Signed-off-by: Philipp Hahn <hahn@univention.de>
This commit is contained in:
committed by
Philipp Hahn
parent
b801ff31fa
commit
74a78fa42c
@@ -97,13 +97,15 @@ except libvirt.libvirtError:
|
||||
print("Failed to open connection to %s" % args.hostname)
|
||||
exit(1)
|
||||
|
||||
state_names = { libvirt.VIR_DOMAIN_RUNNING : "running",
|
||||
libvirt.VIR_DOMAIN_BLOCKED : "idle",
|
||||
libvirt.VIR_DOMAIN_PAUSED : "paused",
|
||||
libvirt.VIR_DOMAIN_SHUTDOWN : "in shutdown",
|
||||
libvirt.VIR_DOMAIN_SHUTOFF : "shut off",
|
||||
libvirt.VIR_DOMAIN_CRASHED : "crashed",
|
||||
libvirt.VIR_DOMAIN_NOSTATE : "no state" }
|
||||
state_names = {
|
||||
libvirt.VIR_DOMAIN_RUNNING: "running",
|
||||
libvirt.VIR_DOMAIN_BLOCKED: "idle",
|
||||
libvirt.VIR_DOMAIN_PAUSED: "paused",
|
||||
libvirt.VIR_DOMAIN_SHUTDOWN: "in shutdown",
|
||||
libvirt.VIR_DOMAIN_SHUTOFF: "shut off",
|
||||
libvirt.VIR_DOMAIN_CRASHED: "crashed",
|
||||
libvirt.VIR_DOMAIN_NOSTATE: "no state",
|
||||
}
|
||||
|
||||
for id in conn.listDomainsID():
|
||||
domain = conn.lookupByID(id)
|
||||
|
||||
Reference in New Issue
Block a user