PEP8 cleanup.

This commit is contained in:
Rick Harris
2011-06-16 17:52:34 +00:00
parent 711e7633ff
commit 4166cf9416

View File

@@ -259,16 +259,17 @@ class reroute_compute(object):
LOG.debug(_("Instance %(item_uuid)s not found " LOG.debug(_("Instance %(item_uuid)s not found "
"locally: '%(e)s'" % locals())) "locally: '%(e)s'" % locals()))
else: else:
# NOTE(sirp): since we're not re-routing in this case, and we # NOTE(sirp): since we're not re-routing in this case, and
# we were passed a UUID, we need to replace that UUID with an # we we were passed a UUID, we need to replace that UUID
# integer ID in the argument list so that the zone-local code # with an integer ID in the argument list so that the
# can continue to use integer IDs. # zone-local code can continue to use integer IDs.
item_id = instance['id'] item_id = instance['id']
args = list(args) # needs to be mutable to replace args = list(args) # needs to be mutable to replace
self.replace_uuid_with_id(args, kwargs, item_id) self.replace_uuid_with_id(args, kwargs, item_id)
if attempt_reroute: if attempt_reroute:
return self._route_to_child_zones(context, collection, item_uuid) return self._route_to_child_zones(context, collection,
item_uuid)
else: else:
return f(*args, **kwargs) return f(*args, **kwargs)