Switch StrOpt to URIOpt for URL config options
This patch updates options including a URL to be URIOpts rather than StrOpts. Change-Id: Icd39c16ea4ec83749f61a443cd450c76be1aabce Closes-bug: #1609152
This commit is contained in:
parent
b0c54b672b
commit
3437ff962a
@ -61,9 +61,9 @@ from cinder import interface
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
swiftbackup_service_opts = [
|
||||
cfg.StrOpt('backup_swift_url',
|
||||
cfg.URIOpt('backup_swift_url',
|
||||
help='The URL of the Swift endpoint'),
|
||||
cfg.StrOpt('backup_swift_auth_url',
|
||||
cfg.URIOpt('backup_swift_auth_url',
|
||||
help='The URL of the Keystone endpoint'),
|
||||
cfg.StrOpt('swift_catalog_info',
|
||||
default='object-store:swift:publicURL',
|
||||
|
@ -195,7 +195,7 @@ global_opts = [
|
||||
cfg.StrOpt('os_privileged_user_tenant',
|
||||
help='Tenant name associated with the OpenStack privileged '
|
||||
'account.'),
|
||||
cfg.StrOpt('os_privileged_user_auth_url',
|
||||
cfg.URIOpt('os_privileged_user_auth_url',
|
||||
help='Auth URL associated with the OpenStack privileged '
|
||||
'account.'),
|
||||
]
|
||||
|
@ -63,7 +63,7 @@ if hpelefthandclient:
|
||||
from hpelefthandclient import exceptions as hpeexceptions
|
||||
|
||||
hpelefthand_opts = [
|
||||
cfg.StrOpt('hpelefthand_api_url',
|
||||
cfg.URIOpt('hpelefthand_api_url',
|
||||
default=None,
|
||||
help="HPE LeftHand WSAPI Server Url like "
|
||||
"https://<LeftHand ip>:8081/lhos",
|
||||
|
@ -35,7 +35,7 @@ VERSION = '1.1'
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
volume_opts = [
|
||||
cfg.StrOpt('quobyte_volume_url',
|
||||
cfg.URIOpt('quobyte_volume_url',
|
||||
help=('URL to the Quobyte volume e.g.,'
|
||||
' quobyte://<DIR host>/<volume name>')),
|
||||
cfg.StrOpt('quobyte_client_cfg',
|
||||
|
Loading…
x
Reference in New Issue
Block a user