def get_server_capabilities(self):
        """Get hardware properties which can be used for scheduling

        :return: a dictionary of server capabilities.
        :raises: IloError, on an error from iLO.
        :raises: IloCommandNotSupportedError, if the command is not supported
                 on the server.
        """
        capabilities = {}
        if self.model in 'Gen9':
            capabilities = self.ris.get_server_capabilities()
            data = self.ribcl.get_host_health_data()
            gpu = self.ribcl._get_number_of_gpu_devices_connected(data)
            capabilities.update(gpu)
            major_minor = self.ris.get_ilo_firmware_version_as_major_minor()
        else:
            capabilities = self.ribcl.get_server_capabilities()
            major_minor = self.ribcl.get_ilo_firmware_version_as_major_minor()

        # NOTE(vmud213): Even if it is None, pass it on to get_nic_capacity
        # as we still want to try getting nic capacity through ipmitool
        # irrespective of what firmware we are using.
        nic_capacity = ipmi.get_nic_capacity(self.info, major_minor)
        if nic_capacity:
            capabilities.update({'nic_capacity': nic_capacity})
        if capabilities:
            return capabilities
dataset/ETHPy150Open openstack/proliantutils/proliantutils/ilo/client.py/IloClient.get_server_capabilities/swapped operands of `in`