Merge "Use HostAddressOpt for opts that accept IP and hostnames"

This commit is contained in:
Jenkins 2017-05-07 09:51:04 +00:00 committed by Gerrit Code Review
commit 876e9d7068
2 changed files with 2 additions and 2 deletions

View File

@ -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'),
]

View File

@ -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')