Commit f92f6bc0 authored by David Johnson's avatar David Johnson

Catch unexpected exceptions in the renew path.

parent 02309e97
......@@ -2582,6 +2582,11 @@ class Slice:
print "Node %s doesn't really exist in %s (%s)" % \
(nodeid, self.slicename, self.plc.name)
continue
except:
print "Unknown error loading node %s from slice %s (%s)" % \
(nodeid, self.slicename, self.plc.name)
traceback.print_exc()
continue
if node.renew():
print "Failed to renew node: %s (expires %s UTC)" % \
(nodeid, time.asctime(time.gmtime(node.leaseend)))
......
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 to comment