Merge "Fixed logging issues with missing ids"

This commit is contained in:
Jenkins 2015-05-11 20:23:05 +00:00 committed by Gerrit Code Review
commit a10926bb6d

View File

@ -329,12 +329,14 @@ class SetCurrentInstanceId(object):
self.prev_uuid = ctx.resource_uuid
if ctx.resource_uuid:
ctx.resource_uuid = ctx.resource_uuid.replace('none', instance_id)
context.get_current().resource_uuid = ctx.resource_uuid
def __enter__(self):
pass
def __exit__(self, *ex):
current().resource_uuid = self.prev_uuid
context.get_current().resource_uuid = self.prev_uuid
def set_current_instance_id(instance_id):