summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAlex Meade <alex.meade@rackspace.com>2011-08-22 17:08:11 -0400
committerAlex Meade <alex.meade@rackspace.com>2011-08-22 17:08:11 -0400
commit77f15157c5ca7013df397abc22a8866cce02976d (patch)
tree9e3bbaf2f787b2d73fc81ce4c70fac13afd30322 /bin
parent8d62d47a1148cc79c0ef0330e0c2d70177ea71c8 (diff)
Ensure that reserve and unreserve exit when an address is not found
Diffstat (limited to 'bin')
-rwxr-xr-xbin/nova-manage2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/nova-manage b/bin/nova-manage
index 8e6419c0b..3d9a40afb 100755
--- a/bin/nova-manage
+++ b/bin/nova-manage
@@ -611,6 +611,8 @@ class FixedIpCommands(object):
try:
fixed_ip = db.fixed_ip_get_by_address(ctxt, address)
+ if fixed_ip is None:
+ raise exception.NotFound('Could not find address')
db.fixed_ip_update(ctxt, fixed_ip['address'],
{'reserved': reserved})
except exception.NotFound as ex: