From 69f4f5ffe44dfa219ecde975180bd26ed5f62377 Mon Sep 17 00:00:00 2001 From: Gorka Eguileor Date: Mon, 18 Jan 2021 12:35:31 +0100 Subject: [PATCH] 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 --- cinder/volume/drivers/pure.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cinder/volume/drivers/pure.py b/cinder/volume/drivers/pure.py index 628866c0500..5ffc00db121 100644 --- a/cinder/volume/drivers/pure.py +++ b/cinder/volume/drivers/pure.py @@ -59,8 +59,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