Skip to content

Commit

Permalink
fixes bug 1010200
Browse files Browse the repository at this point in the history
volume['id'] is no longer integer

Change-Id: I5a9f59618569a9702297154d29b703562fe36ee9
  • Loading branch information
maoy committed Jun 7, 2012
1 parent 089300f commit 34a00da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nova/volume/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def ensure_export(self, context, volume):
volume['id'])
except exception.NotFound:
LOG.info(_("Skipping ensure_export. No iscsi_target "
"provisioned for volume: %d"), volume['id'])
"provisioned for volume: %s"), volume['id'])
return

iscsi_name = "%s%s" % (FLAGS.iscsi_target_prefix, volume['name'])
Expand Down Expand Up @@ -316,7 +316,7 @@ def remove_export(self, context, volume):
volume['id'])
except exception.NotFound:
LOG.info(_("Skipping remove_export. No iscsi_target "
"provisioned for volume: %d"), volume['id'])
"provisioned for volume: %s"), volume['id'])
return

try:
Expand All @@ -325,7 +325,7 @@ def remove_export(self, context, volume):
self.tgtadm.show_target(iscsi_target)
except Exception as e:
LOG.info(_("Skipping remove_export. No iscsi_target "
"is presently exported for volume: %d"), volume['id'])
"is presently exported for volume: %s"), volume['id'])
return

self.tgtadm.delete_logicalunit(iscsi_target, 0)
Expand Down

0 comments on commit 34a00da

Please sign in to comment.