From af15632d566a31afccb83254f36a581b09dd6030 Mon Sep 17 00:00:00 2001 From: Hongbin Lu Date: Sun, 24 Feb 2019 19:44:08 +0000 Subject: [PATCH] Avoid logging uuid on loading object attribute If the object is not yet saved, the 'uuid' attribute is not populated and loading this attribute will fail. Change-Id: Ic716a494238c453ff3fd488d34e19d53b943e898 --- zun/objects/volume_mapping.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zun/objects/volume_mapping.py b/zun/objects/volume_mapping.py index f5bd487fb..1ebb8d4e9 100644 --- a/zun/objects/volume_mapping.py +++ b/zun/objects/volume_mapping.py @@ -264,10 +264,9 @@ class VolumeMapping(base.ZunPersistentObject, base.ZunObject): raise exception.OrphanedObjectError(method='obj_load_attr', objtype=self.obj_name()) - LOG.debug("Lazy-loading '%(attr)s' on %(name)s uuid %(uuid)s", + LOG.debug("Lazy-loading '%(attr)s' on %(name)s", {'attr': attrname, 'name': self.obj_name(), - 'uuid': self.uuid, }) if attrname in VOLUME_ATTRS: