Commit 55f64d9c by Bach Dániel

fix flake8 warnings

parent c54d5eef
...@@ -248,7 +248,7 @@ def port_delete(network): ...@@ -248,7 +248,7 @@ def port_delete(network):
try: try:
clear_port_rules(network) clear_port_rules(network)
except: except:
pass # Missing port (deleted already) pass # Missing port (deleted already)
if not native_ovs: if not native_ovs:
# Delete port # Delete port
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
import vm import vm
import vmdriver import vmdriver
#import logging # import logging
from nose.tools import raises from nose.tools import raises
graphics = {'type': 'vnc', 'listen': graphics = {'type': 'vnc', 'listen':
...@@ -34,18 +34,18 @@ asd = vm.VMInstance.deserialize(vmdict) ...@@ -34,18 +34,18 @@ asd = vm.VMInstance.deserialize(vmdict)
print asd.dump_xml() print asd.dump_xml()
# Enable logging # Enable logging
#logging.basicConfig(filename='example.log', level=logging.DEBUG) # logging.basicConfig(filename='example.log', level=logging.DEBUG)
#print testvm.dump_xml() # print testvm.dump_xml()
#vm_driver = vmdriver.VMDriver() # vm_driver = vmdriver.VMDriver()
#vm_driver.connect() # vm_driver.connect()
#vm_driver.vm_define(testvm) # vm_driver.vm_define(testvm)
#print '%(name)s defined.' % {'name': testvm.name} # print '%(name)s defined.' % {'name': testvm.name}
#for i in vm_driver.list_domains(): # for i in vm_driver.list_domains():
# print i # print i
# #vm_driver.vm_start(i) # #vm_driver.vm_start(i)
# vm_driver.vm_undefine(i) # vm_driver.vm_undefine(i)
# print '%(name)s undefined.' % {'name': i} # print '%(name)s undefined.' % {'name': i}
#vm_driver.disconnect() # vm_driver.disconnect()
@raises(AttributeError) @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