

def _load_flavor(self):
    instance = self.__class__.get_by_uuid(self._context, uuid=self.uuid, expected_attrs=['flavor', 'system_metadata'])
    instance._context = None
    self.flavor = instance.flavor
    self.old_flavor = instance.old_flavor
    self.new_flavor = instance.new_flavor
    instance.system_metadata.update(self.get('system_metadata', {
        
    }))
    self.system_metadata = instance.system_metadata

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