Commit 55f64d9c by Bach Dániel

fix flake8 warnings

parent c54d5eef
......@@ -248,7 +248,7 @@ def port_delete(network):
try:
clear_port_rules(network)
except:
pass # Missing port (deleted already)
pass # Missing port (deleted already)
if not native_ovs:
# Delete port
......
......@@ -2,7 +2,7 @@
import vm
import vmdriver
#import logging
# import logging
from nose.tools import raises
graphics = {'type': 'vnc', 'listen':
......@@ -34,18 +34,18 @@ asd = vm.VMInstance.deserialize(vmdict)
print asd.dump_xml()
# Enable logging
#logging.basicConfig(filename='example.log', level=logging.DEBUG)
#print testvm.dump_xml()
#vm_driver = vmdriver.VMDriver()
#vm_driver.connect()
#vm_driver.vm_define(testvm)
#print '%(name)s defined.' % {'name': testvm.name}
#for i in vm_driver.list_domains():
# logging.basicConfig(filename='example.log', level=logging.DEBUG)
# print testvm.dump_xml()
# vm_driver = vmdriver.VMDriver()
# vm_driver.connect()
# vm_driver.vm_define(testvm)
# print '%(name)s defined.' % {'name': testvm.name}
# for i in vm_driver.list_domains():
# print i
# #vm_driver.vm_start(i)
# vm_driver.vm_undefine(i)
# print '%(name)s undefined.' % {'name': i}
#vm_driver.disconnect()
# vm_driver.disconnect()
@raises(AttributeError)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment