[PR #8956/b523d1b1 backport][stable-9] Remove 'CapacityBytes' from list of required parameters (#9007)
Remove 'CapacityBytes' from list of required parameters (#8956)
* Remove 'CapacityBytes' from list of required parameters
* Add CHANGELOG fragment
* Fix sanity test failure whitespace before ']'
* Update changelogs/fragments/8956-remove-capacitybytes-from-the-required-parameters_list.yml
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
* Add description for the volume_details key CapacityBytes
* Update plugins/modules/redfish_config.py
Co-authored-by: Mike Raineri <mraineri@gmail.com>
* Adjust description.
---------
Co-authored-by: Pierre-yves FONTANIERE <pyf@cc.in2p3.fr>
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Mike Raineri <mraineri@gmail.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit b523d1b1c9
)
Co-authored-by: Pierre-yves Fontaniere <pyfontan@cc.in2p3.fr>
pull/9014/head
parent
dc5a89b040
commit
1affd48260
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- redfish_confg - remove ``CapacityBytes`` from required paramaters of the ``CreateVolume`` command (https://github.com/ansible-collections/community.general/pull/8956).
|
|
@ -3777,8 +3777,8 @@ class RedfishUtils(object):
|
||||||
'msg': "Provided Storage Subsystem ID %s does not exist on the server" % storage_subsystem_id}
|
'msg': "Provided Storage Subsystem ID %s does not exist on the server" % storage_subsystem_id}
|
||||||
|
|
||||||
# Validate input parameters
|
# Validate input parameters
|
||||||
required_parameters = ['RAIDType', 'Drives', 'CapacityBytes']
|
required_parameters = ['RAIDType', 'Drives']
|
||||||
allowed_parameters = ['DisplayName', 'InitializeMethod', 'MediaSpanCount',
|
allowed_parameters = ['CapacityBytes', 'DisplayName', 'InitializeMethod', 'MediaSpanCount',
|
||||||
'Name', 'ReadCachePolicy', 'StripSizeBytes', 'VolumeUsage', 'WriteCachePolicy']
|
'Name', 'ReadCachePolicy', 'StripSizeBytes', 'VolumeUsage', 'WriteCachePolicy']
|
||||||
|
|
||||||
for parameter in required_parameters:
|
for parameter in required_parameters:
|
||||||
|
|
|
@ -164,6 +164,9 @@ options:
|
||||||
required: false
|
required: false
|
||||||
description:
|
description:
|
||||||
- Setting dict of volume to be created.
|
- Setting dict of volume to be created.
|
||||||
|
- If C(CapacityBytes) key is not specified in this dictionary, the size of
|
||||||
|
the volume will be determined by the Redfish service. It is possible the
|
||||||
|
size will not be the maximum available size.
|
||||||
type: dict
|
type: dict
|
||||||
default: {}
|
default: {}
|
||||||
version_added: '7.5.0'
|
version_added: '7.5.0'
|
||||||
|
|
Loading…
Reference in New Issue