10 Commits

Author SHA1 Message Date
Christopher Dearborn
72ea2323e5 Separate reboot required from commit required
This patch separates indicators for reboot required and commit required.
It does this by adding two new keys (is_reboot_required and
is_commit_required) to the dictionary returned by set/create/modify
operations while continuing to return the commit_required key for
backwards compatibility.

The commit_required key should be considered deprecated at this time and
it will be removed in a future patch.

The is_reboot_required key has an enumerated value that can have three
possible values: true, optional, and false.  This allows the return of
optional for RAID operations that can return this value.

Change-Id: I70e52868f10bfafb30bbb38b85888bc4ec8e65ae
Closes-Bug: 1732549
2018-01-22 09:36:53 -05:00
Mark Goddard
2a80dbb2c9 Add constituent physical disks to RAID virtual disk object
This change adds a new attribute - physical_disks - to
dracclient.resources.raid.VirtualDisk objects. The attribute is a
list of IDs of the physical disks that a virtual disk is composed of.
This allows clients of the library to obtain a more complete view of
the current RAID configuration.

Change-Id: If4f762d3bc115a971d0392af8270f5440ef43913
Closes-bug: #1651702
2017-01-12 19:56:39 +00:00
Dmitry Tantsur
aeebdf890b Raise a specific exception instead of generic AttributeError
Currently we raise an AttributeError when expected attribute is missing
from the response. This is not very developer-friendly, so this patch
creates a new exception (derived from AttributeError for compatibility)
for this purpose.

Change-Id: If2ac03dcd410d451dc7bbfe7bbd0b145da201c9a
Related-Bug: #1550328
2016-11-08 18:04:42 +01:00
Dmitry Tantsur
ba1eb4aa99 Raise a reasonable error on non-nullable flags with empty text
Now it fails with AttributeError: 'NoneType' object has no attribute 'strip'.
Raise a new exception with proper explanation instead.

Partial-Bug: #1550328
Change-Id: Ie9f9d212c934bb75e8224dd64ec8df7f788b86d3
2016-11-07 15:44:14 +01:00
Imre Farkas
f96744daf3 Allow missing flags on inventory.CPU
Change-Id: Idd485fd11ab9d784bc8c24a9b8279bcce76f0f68
Closes-Bug: #1602173
2016-08-10 10:47:38 +02:00
Imre Farkas
d52d16c6e6 Fix docstrings for params
Change-Id: I95784e65fcaacb7d74a1a6dab0d8549c2a6cf13a
2015-12-09 16:22:32 +01:00
Imre Farkas
617d5d7e1b Add RAID management
Change-Id: Id342bf5de2cf06fa7a9c125a4fac15df21a1f5fe
2015-12-09 16:22:11 +01:00
Imre Farkas
da78c87db2 Add support for BIOS configuration
Change-Id: I574696e460f08cececc47a69b5c2b090a6cd44a2
2015-12-08 14:32:25 +01:00
Imre Farkas
400f9317ba Add job management
Change-Id: Id5c8462c9f797f5d506fcacab5736a7768dbd99d
2015-11-11 12:59:21 +01:00
Imre Farkas
9153b850b2 Add power management
Change-Id: Iab9d9f7e4e25e3d3fdec9b28fe49a7226e68c9ff
2015-11-10 10:05:21 +01:00