mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
commit
b475294564
2 changed files with 3 additions and 3 deletions
|
@ -297,7 +297,7 @@ class Virt(object):
|
|||
|
||||
"""
|
||||
Stop a domain, and then wipe it from the face of the earth.
|
||||
by deleting the disk image and it's configuration file.
|
||||
by deleting the disk image and its configuration file.
|
||||
"""
|
||||
|
||||
self.__get_conn()
|
||||
|
@ -316,7 +316,7 @@ class Virt(object):
|
|||
|
||||
def get_xml(self, vmid):
|
||||
"""
|
||||
Recieve a Vm id as input
|
||||
Receive a Vm id as input
|
||||
Return an xml describing vm config returned by a libvirt call
|
||||
"""
|
||||
conn = libvirt.openReadOnly(None)
|
||||
|
|
|
@ -68,7 +68,7 @@ def pkg_to_dict(po):
|
|||
return d
|
||||
|
||||
def list_stuff(my, stuff):
|
||||
# FIXME - there are poitential tracebacks that could occur here
|
||||
# FIXME - there are potential tracebacks that could occur here
|
||||
# need some more catching for them so we can see what happened
|
||||
if stuff == 'installed':
|
||||
return [ pkg_to_dict(po) for po in my.rpmdb ]
|
||||
|
|
Loading…
Reference in a new issue