1. 21 Dec, 2021 1 commit
  2. 10 Sep, 2021 2 commits
  3. 02 Sep, 2021 1 commit
    • likui's avatar
      setup.cfg: Replace dashes with underscores · 0c0b7456
      likui authored
      Setuptools v54.1.0 introduces a warning that the use of
      dash-separated options in 'setup.cfg' will not be supported
      in a future version [1].
      Get ahead of the issue by replacing the dashes with underscores.
      Without this, we see 'UserWarning' messages
      like the following on new enough
      versions of setuptools:
      
        UserWarning: Usage of dash-separated 'description-file' will not be
        supported in future versions. Please use the underscore name
        'description_file' instead
      
      [1] https://github.com/pypa/setuptools/commit/a2e9ae4cb
      
      Change-Id: Iceaa69d80eef75db5bac67463a59fd615ae0e895
      0c0b7456
  4. 20 Aug, 2021 1 commit
  5. 19 Aug, 2021 1 commit
  6. 03 Jun, 2021 1 commit
  7. 02 Jun, 2021 1 commit
  8. 01 Jun, 2021 1 commit
  9. 27 May, 2021 1 commit
  10. 16 May, 2021 1 commit
    • David Vallee Delisle's avatar
      config-generator yaml format doesn't work with i18n fields · e5fc313e
      David Vallee Delisle authored
      This is because there's no yaml representer for i18n Messages object.
      This patch aims to add this representer and allow the generation of
      configurations using oslo.i18n strings.
      
      One example of this is cinder.
      
      Closes-bug: #1928582
      Change-Id: I70ab87c9bed093cad883b6301b8a09753fc470d9
      e5fc313e
  11. 05 May, 2021 2 commits
  12. 04 May, 2021 2 commits
  13. 29 Apr, 2021 1 commit
    • songwenping's avatar
      setup.cfg: Replace dashes with underscores · ab8a8dd7
      songwenping authored
      Setuptools v54.1.0 introduces a warning that the use of dash-separated
      options in 'setup.cfg' will not be supported in a future version [1].
      Get ahead of the issue by replacing the dashes with underscores. Without
      this, we see 'UserWarning' messages like the following on new enough
      versions of setuptools:
      
        UserWarning: Usage of dash-separated 'description-file' will not be
        supported in future versions. Please use the underscore name
        'description_file' instead
      
      [1] https://github.com/pypa/setuptools/commit/a2e9ae4cb
      
      Change-Id: Icc9b9a3af1c8cf58b3a2b9626065cb2fcd074a42
      ab8a8dd7
  14. 26 Apr, 2021 1 commit
  15. 25 Apr, 2021 1 commit
  16. 22 Apr, 2021 1 commit
    • Hervé Beraud's avatar
      Adding the missing HostDomain config option · bb5e4cbe
      Hervé Beraud authored
      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] https://opendev.org/openstack/oslo.config/commit/6480356928c9ae6169ea1e5a5b5f1df3d6e0dc75
      
      Change-Id: Ie947803f61ba0ef080018e0447de894a400d7975
      Closes-Bug: 1924283
      bb5e4cbe
  17. 21 Apr, 2021 1 commit
  18. 16 Apr, 2021 3 commits
  19. 15 Apr, 2021 2 commits
  20. 14 Apr, 2021 1 commit
  21. 12 Apr, 2021 1 commit
  22. 23 Mar, 2021 1 commit
  23. 18 Mar, 2021 2 commits
  24. 18 Feb, 2021 1 commit
    • Ben Nemec's avatar
      Bump minimum version for PyYAML to 5.1 · cfa25646
      Ben Nemec authored
      This addresses CVE-2017-18342. I doubt anyone is actually using an
      old version of PyYAML with oslo.config at this point, but that means
      it shouldn't hurt to bump the minimum either.
      
      Change-Id: I4f440eb9511333ce70db4184857dcbcdd0ed1b97
      Closes-Bug: 1839398
      cfa25646
  25. 16 Jan, 2021 2 commits
  26. 14 Jan, 2021 1 commit
  27. 12 Jan, 2021 3 commits
  28. 26 Nov, 2020 1 commit
  29. 24 Nov, 2020 1 commit
    • David Vallee Delisle's avatar
      Adding --check-defaults to validator · f2ca66fd
      David Vallee Delisle authored
      
      
      When troubleshooting, it's often interesting to see the deltas between
      the default or sample configs and the running configuration. The
      oslo_config.validator is a great tool to integrate this feature across
      all projects. It can also be easily captured by data collection tools
      like sosreports with the current deployment packages.
      
      Change-Id: I172d82f19a81282093b0d5f7ae4c1817801cd887
      Signed-off-by: default avatarDavid Vallee Delisle <dvd@redhat.com>
      f2ca66fd
  30. 05 Nov, 2020 1 commit