

@property
def name(self):
    try:
        base_name = (CONF.instance_name_template % self.id)
    except TypeError:
        info = {
            
        }
        for key in self.fields:
            if (key == 'name'):
                continue
            elif (not self.obj_attr_is_set(key)):
                continue
            info[key] = self[key]
        try:
            base_name = (CONF.instance_name_template % info)
        except KeyError:
            base_name = self.uuid
    return base_name

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/objects/instance.py Instance.name/original