1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

convert default_image_owner to seperate guid and uid

This commit is contained in:
catborise 2018-09-28 13:45:56 +03:00
parent 25e6381fc9
commit 37b5093e13
2 changed files with 4 additions and 5 deletions

View file

@ -233,7 +233,7 @@ class wvmStorage(wvmConnect):
<lazy_refcounts/>
</features>
</target>
</volume>""" % (name, size, alloc, vol_fmt, owner, owner)
</volume>""" % (name, size, alloc, vol_fmt, owner['uid'], owner['guid'])
self._createXML(xml, metadata)
def clone_volume(self, name, target_file, vol_fmt=None, metadata=False, owner=owner):
@ -261,5 +261,5 @@ class wvmStorage(wvmConnect):
<lazy_refcounts/>
</features>
</target>
</volume>""" % (target_file, vol_fmt, owner,owner)
</volume>""" % (target_file, vol_fmt, owner['uid'],owner['guid'])
self._createXMLFrom(xml, vol, metadata)