AttributeError during client.list_cpus()

Bug #1602173 reported by Imre Farkas on 2016-07-12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Imre Farkas

Bug Description

AttributeError when HyperThreadingEnabled is missing from DCIM_CPUView enumeration response during client.list_cpus()

  File "dracclient/", line 440, in list_cpus
    return self._inventory_mgmt.list_cpus()
  File "dracclient/resources/", line 92, in list_cpus
    return [self._parse_cpus(cpu) for cpu in cpus]
  File "dracclient/resources/", line 105, in _parse_cpus
    ht_enabled=bool(self._get_cpu_attr(cpu, 'HyperThreadingEnabled')),
  File "dracclient/resources/", line 113, in _get_cpu_attr
    cpu, uris.DCIM_CPUView, attr_name)
  File "dracclient/", line 61, in get_wsman_resource_attr
    return item.text.strip()
AttributeError: 'NoneType' object has no attribute 'text'

Imre Farkas (ifarkas) on 2016-07-12
Changed in python-dracclient:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Imre Farkas (ifarkas)

Fix proposed to branch: master

Changed in python-dracclient:
status: Confirmed → In Progress

Submitter: Jenkins
Branch: master

commit f96744daf3f29ecd34918cd7626d4fb0969eeb34
Author: Imre Farkas <email address hidden>
Date: Tue Jul 12 11:51:40 2016 +0200

    Allow missing flags on inventory.CPU

    Change-Id: Idd485fd11ab9d784bc8c24a9b8279bcce76f0f68
    Closes-Bug: #1602173

Changed in python-dracclient:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers