mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-05-26 15:13:33 +00:00
Remove unnecessary comments
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user