mirror of
https://github.com/retspen/webvirtcloud
synced 2024-10-31 19:44:16 +00:00
Remove unnecessary comments
This commit is contained in:
parent
1ded650463
commit
7404a1212a
2 changed files with 4 additions and 7 deletions
|
@ -0,0 +1,4 @@
|
|||
import random, string
|
||||
|
||||
haystack = string.ascii_letters + string.digits + string.punctuation
|
||||
print(''.join([random.SystemRandom().choice(haystack.replace('/','').replace('\'', '').replace('\"','')) for _ in range(50)]))
|
|
@ -970,13 +970,6 @@ class wvmInstance(wvmConnect):
|
|||
""" % nwfilter
|
||||
xml_interface += """</interface>"""
|
||||
|
||||
# if self.get_status() == 5:
|
||||
# devices = tree.find('devices')
|
||||
# elm_interface = ElementTree.fromstring(xml_interface)
|
||||
# devices.append(elm_interface)
|
||||
# xmldom = ElementTree.tostring(tree)
|
||||
# self._defineXML(xmldom)
|
||||
|
||||
if self.get_status() == 1:
|
||||
self.instance.attachDeviceFlags(xml_interface, VIR_DOMAIN_AFFECT_LIVE)
|
||||
self.instance.attachDeviceFlags(xml_interface, VIR_DOMAIN_AFFECT_CONFIG)
|
||||
|
|
Loading…
Reference in a new issue