mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-10 13:57:39 +03:00
create: Make sure pool is running in host space tick function
This commit is contained in:
parent
a567f18b9e
commit
a707327ec2
@ -22,6 +22,7 @@ import logging
|
||||
import traceback
|
||||
import os, statvfs
|
||||
|
||||
import libvirt
|
||||
import gtk
|
||||
|
||||
import virtinst
|
||||
@ -79,7 +80,7 @@ def host_disk_space(conn, config):
|
||||
# FIXME: make sure not inactive?
|
||||
# FIXME: use a conn specific function after we send pool-added
|
||||
pool = virtinst.util.lookup_pool_by_path(conn.vmm, path)
|
||||
if pool:
|
||||
if pool and pool.info()[0] == libvirt.VIR_STORAGE_POOL_RUNNING:
|
||||
pool.refresh(0)
|
||||
avail = int(virtinst.util.get_xml_path(pool.XMLDesc(0),
|
||||
"/pool/available"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user