

def get_flavor(self, namespace=None):
    prefix = (('%s_' % namespace) if (prefix is not None) else '')
    attr = ('%sflavor' % prefix)
    try:
        return getattr(self, attr)
    except exception.FlavorNotFound:
        return None

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/objects/instance.py Instance.get_flavor/VarMisuse@24/28 `namespace`->`prefix`