ironic/ironic/drivers/modules
Richard Pioso 9889ab2c1a DRAC get_bios_config() passthru causes exception
The DRAC driver's (pxe_drac) get_bios_config() vendor passthru method
raises an AttributeError exception. It no longer returns the current
BIOS configuration. This is a regression from stable/mitaka.

Triage found that get_bios_config() mistakenly treats the value returned
by python-dracclient's list_bios_settings() as containing named tuples.
When it calls the namedtuple _asdict() method, an AttributeError
exception is raised.

Revert get_bios_config()'s handling of the return value to use __dict__.
Remove the comment that is not consistent with the implementation.

Also revert the unit test case for a successful call to use mock to
create the return value. Use mock.NonCallableMock with an empty
specification (spec) to catch this type of bug in the future.

Change-Id: I94afaa72a1ef25efc1b622e29e3a92a5d27f1892
Closes-Bug: #1637671
(cherry picked from commit 6d6cf18f31)
2016-11-02 11:07:09 +00:00
..
amt Merge "Centralize Config Options - patch merge, cleanup" 2016-08-25 22:45:55 +00:00
cimc Centralize config options - [cimc] 2016-06-16 16:45:51 -07:00
drac DRAC get_bios_config() passthru causes exception 2016-11-02 11:07:09 +00:00
ilo Timing metrics: iLO drivers 2016-09-12 03:00:22 -07:00
irmc Merge imports in code 2016-08-24 01:34:03 +00:00
msftocs Merge imports in code 2016-08-24 01:34:03 +00:00
network Merge imports in code 2016-08-24 01:34:03 +00:00
oneview Fix for check if dynamic allocation model is enabled 2016-08-26 21:26:15 +00:00
ucs Merge imports in code 2016-08-24 01:34:03 +00:00
__init__.py Remove copyright from empty files 2014-01-07 21:05:01 +08:00
agent.py Support configdrive in iscsi deploy for whole disk images 2016-09-18 23:28:02 -07:00
agent_base_vendor.py Mask instance secrets in API responses 2016-08-26 08:31:17 -07:00
agent_client.py Merge imports in code 2016-08-24 01:34:03 +00:00
agent_config.template Add support for partition images in agent drivers 2016-03-21 16:12:08 +00:00
boot.ipxe Fall back to old boot.ipxe behaviour if inc command is not found 2015-12-01 11:15:56 +01:00
console_utils.py Merge imports in code 2016-08-24 01:34:03 +00:00
deploy_utils.py Remove duplicated line wrt configdrive 2016-09-19 15:45:42 -04:00
elilo_efi_pxe_config.template Ensure configdrive isn't mounted for ipxe/elilo 2015-03-25 16:34:50 +00:00
fake.py Fix fake.FakeBoot.prepare_ramdisk() signature 2016-07-15 16:36:37 +03:00
iboot.py Merge imports in code 2016-08-24 01:34:03 +00:00
image_cache.py Merge imports in code 2016-08-24 01:34:03 +00:00
inspector.py Merge "Switch Inspector interface to pass keystoneauth sessions" 2016-08-26 16:42:50 +00:00
ipminative.py Merge "Add metrics for the ipminative driver" 2016-08-29 14:27:29 +00:00
ipmitool.py Refactor common checks when instantiating the ipmitool classes 2016-09-19 11:39:52 +00:00
ipxe_config.template ipxe: retry on failure 2016-04-19 10:20:36 -04:00
iscsi_deploy.py Support configdrive in iscsi deploy for whole disk images 2016-09-18 23:28:02 -07:00
master_grub_cfg.txt grub2 bootloader support for uefi boot mode 2015-07-29 03:18:41 +00:00
pxe.py Merge "Allow using TempURLs for deploy images" 2016-09-19 16:48:28 +00:00
pxe_config.template Add a new boot section 'trusted_boot' for PXE 2015-06-26 11:50:57 +08:00
pxe_grub_config.template grub2 bootloader support for uefi boot mode 2015-07-29 03:18:41 +00:00
seamicro.py Merge imports in code 2016-08-24 01:34:03 +00:00
snmp.py Merge "Update hacking test-requirement" 2016-08-26 00:12:44 +00:00
ssh.py Merge imports in code 2016-08-24 01:34:03 +00:00
virtualbox.py Merge imports in code 2016-08-24 01:34:03 +00:00
wol.py Merge imports in code 2016-08-24 01:34:03 +00:00