

@staticmethod
def _get_total_resources(host_name, compute_node):
    return {
        'resource': {
            'host': host_name,
            'project': '(total)',
            'cpu': host_name.vcpus,
            'memory_mb': compute_node.memory_mb,
            'disk_gb': compute_node.local_gb,
        },
    }

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/api/openstack/compute/hosts.py HostController._get_total_resources/VarMisuse@34/54 `compute_node`->`host_name`