Fix python2.4 incompatibility

python2.4 compatibility is needed for the agent
to work on Xen

Change-Id: Ifa81a5ddb4f2a9dcb6ce94fa0d941ba6e6c2e038
This commit is contained in:
Piotr Siwczak 2012-06-12 13:57:08 -07:00
parent c0d0e891c0
commit 3e763b4ca4

View File

@ -133,7 +133,7 @@ class OVSQuantumAgent(object):
all_bindings = {}
try:
ports = db.ports.all()
except Exception as e:
except Exception, e:
LOG.info("Unable to get port bindings! Exception: %s" % e)
db_connected = False
continue
@ -144,7 +144,7 @@ class OVSQuantumAgent(object):
vlan_bindings = {}
try:
vlan_binds = db.vlan_bindings.all()
except Exception as e:
except Exception, e:
LOG.info("Unable to get vlan bindings! Exception: %s" % e)
db_connected = False
continue
@ -203,7 +203,7 @@ class OVSQuantumAgent(object):
old_local_bindings = new_local_bindings
try:
db.commit()
except Exception as e:
except Exception, e:
LOG.info("Unable to commit to database! Exception: %s" % e)
db.rollback()
old_local_bindings = {}