Pure: Add default value to pure_host_personality

Pure's "pure_host_personality" configuration option currently defaults
to a non valid value according to its choices.

This affects tools leveraging the "get_driver_options" mechanism, since
the default value for the option was not considered a valid option.

This patch sets the default explicitly and adds it as a valid choice.

Change-Id: I381b80920d812a3f3b5f75b6dae66aa932f6baa4
(cherry picked from commit 69f4f5ffe4)
(cherry picked from commit e20c7d34e4)
(cherry picked from commit 1aa9073008)
This commit is contained in:
Gorka Eguileor 2021-01-18 12:35:31 +01:00 committed by Luigi Toscano
parent ecd2916042
commit c2c098317c
1 changed files with 2 additions and 1 deletions

View File

@ -62,8 +62,9 @@ PURE_OPTS = [
"this calculated value will override the "
"max_over_subscription_ratio config option."),
cfg.StrOpt("pure_host_personality",
default=None,
choices=['aix', 'esxi', 'hitachi-vsp', 'hpux',
'oracle-vm-server', 'solaris', 'vms'],
'oracle-vm-server', 'solaris', 'vms', None],
help="Determines how the Purity system tunes the protocol used "
"between the array and the initiator."),
# These are used as default settings. In future these can be overridden