Merge "Fixed logging issues with missing ids"
This commit is contained in:
commit
a10926bb6d
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user