Merge "Use HostAddressOpt for opts that accept IP and hostnames"
This commit is contained in:
commit
876e9d7068
|
@ -15,7 +15,7 @@ from oslo_config import cfg
|
|||
from karbor.services.protection import bank_plugin
|
||||
|
||||
fake_bank_opts = [
|
||||
cfg.StrOpt('fake_host'),
|
||||
cfg.HostAddressOpt('fake_host'),
|
||||
]
|
||||
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@ class FakeBankPlugin(BankPlugin):
|
|||
super(FakeBankPlugin, self).__init__(config=config)
|
||||
self._objects = {}
|
||||
fake_bank_opts = [
|
||||
cfg.StrOpt('fake_host'),
|
||||
cfg.HostAddressOpt('fake_host'),
|
||||
]
|
||||
if config:
|
||||
config.register_opts(fake_bank_opts, 'fake_bank')
|
||||
|
|
Loading…
Reference in New Issue