Python oslo_config.cfg.HostAddressOpt() Examples

The following are 1 code examples of oslo_config.cfg.HostAddressOpt(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module oslo_config.cfg , or try the search function .
Example #1
Source File: fakes.py    From karbor with Apache License 2.0 5 votes vote down vote up
def __init__(self, config=None):
        super(FakeBankPlugin, self).__init__(config=config)
        self._objects = {}
        fake_bank_opts = [
            cfg.HostAddressOpt('fake_host'),
        ]
        if config:
            config.register_opts(fake_bank_opts, 'fake_bank')
            self.fake_host = config['fake_bank']['fake_host']