virt module should work

This commit is contained in:
Thomas S Hatch 2011-03-16 22:12:30 -06:00
parent 172265da07
commit 978e4b4954

View File

@ -136,15 +136,15 @@ def pause(vm_):
dom.suspend()
return True
def unpause(vm_):
def resume(vm_):
'''
Unpause the named vm
Resume the named vm
CLI Example:
salt '*' virt.unpause <vm name>
salt '*' virt.resume <vm name>
'''
dom = _get_dom(vm_)
dom.unpause()
dom.resume()
return True
def create(vm_):
@ -166,7 +166,7 @@ def create_xml_str(xml):
salt '*' virt.create_xml_str <xml in string format>
'''
conn = __get_conn()
conn.createXML(xml)
conn.createXML(xml, 0)
return True
def create_xml_path(path):