oslo.config/releasenotes/notes
Hervé Beraud bb5e4cbeb9 Adding the missing HostDomain config option
The ``HostDomain`` config type have been added few months ago [1]
however the config option have been forgotten and this new type
isn't importable.

When we try to import this type without defining a new related cfg
option we get the following issue:

```
AttributeError: module 'oslo_config.cfg' has no attribute 'HostDomain'
```

These changes allow us to import this new type and allow us to use
it in our configs:

```
>>> from oslo_config import cfg
>>> foo = cfg.HostDomain('foo')
>>> foo.type.__call__("1")
...
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "~/oslo.config/oslo_config/types.py", line 893, in __call__
     raise ValueError(
ValueError: 1 is not a valid host address
>>> foo.type.__call__("host_name")
'host_name'
```

Also properly initialize HostDomain because The HostDomain class wasn't
calling super in it's __init__() method, which resulted in the type_name not
being set properly for instances of that class.

[1] 6480356928

Change-Id: Ie947803f61ba0ef080018e0447de894a400d7975
Closes-Bug: 1924283
2021-04-22 12:31:48 +02:00
..
.placeholder Add reno for release notes management 2016-02-22 11:28:17 +00:00
add-HostAddressOpt-6e7e2afe7c7863cb.yaml Fixing HostName and adding support for HostAddress 2016-12-07 03:27:45 +00:00
add-HostDomain-implement-rfc1033-c985a3054f824e9d.yaml Add a new type HostDomain. 2020-10-22 12:30:39 +02:00
add-default-config-dirs-03340ff6689afe94.yaml Add defaults for config-dir 2016-11-30 06:58:12 +01:00
add-float-min-max-b1a2e16301c8435c.yaml Add min and max values to Float type and Opt 2016-07-21 14:38:23 +03:00
add-missing-config-option-9ee1992eea750200.yaml Adding the missing HostDomain config option 2021-04-22 12:31:48 +02:00
add-port_type-8704295c6a56265d.yaml Add Port type to allow configuration of a list of tcp/ip ports 2016-08-11 12:05:59 +03:00
add-reno-71dc832ce29b962f.yaml add a release note mentioning our use of reno 2016-02-22 17:35:40 +00:00
config-from-environment-3feba7b4cc747d2b.yaml Add support for looking in environment for config 2018-10-17 20:49:05 +01:00
config-validator-256817f2183994fd.yaml Add release note and documentation for config validator 2018-09-26 19:49:43 +00:00
drop-python27-support-87f1b4089d4cc78b.yaml reword releasenote for py27 support dropping 2020-02-06 12:30:40 +01:00
machine-readable-sample-config-e8f8ba43ababcf99.yaml Machine Readable Sample Config 2017-06-01 20:47:01 +00:00
positional-arguments-are-required-22ddca72e6f523bf.yaml Assume positional arguments are required 2017-03-30 18:24:31 +00:00
show-deprecated-reason-361a8eb31e05c97e.yaml add deprecation_reason to log message 2017-04-25 11:01:42 -04:00
support-choice-descriptions-8b2d0c14fbd16b2a.yaml Provide descriptions for choices 2017-12-13 14:33:03 +00:00
support-fatal-deprecations-ea0513aa58a395ca.yaml Optionally use oslo.log for deprecated opt logging 2018-06-21 14:50:47 +00:00
validator-check-defaults-e7b596a2fde781a8.yaml Adding --check-defaults to validator 2020-11-24 13:55:33 -05:00
validator-exclude-groups-ad2f046522a3407e.yaml Add exclude-groups option to config validator 2019-03-26 20:00:00 +00:00