Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • v1.14.7
  • v1.14.6
  • v1.14.5
  • v1.14.4
  • v1.14.3
  • v1.14.2
  • v1.14.1
  • v1.14.0
  • v1.13.2
  • v1.13.1
  • v1.13.0
  • v1.12.1
  • v1.12.0
  • v1.11.1
  • v1.11.0
  • v1.10.0
  • v1.9.2
  • v1.9.1
  • v1.9.0
  • v1.8.4
21 results

ansible_ipa_replica.py

Blame
    • Rafael Guterres Jeffman's avatar
      b1328ba7
      ipareplica: Don't rely on pkg_resources whenever possible · b1328ba7
      Rafael Guterres Jeffman authored
      
      Python's module "pkg_resources" API has been deprecated in Python 3.12
      and will be removed in a future release, and recent FreeIPA versions
      provide a replacement for pkg_resources.parse_version.
      
      To remove ansible-freeipa dependency on pkg_resources and not add a
      dependency on the 'packaging' module, which is not available in the
      standard Python distribution, we'll try to import the funcion used in
      FreeIPA to parse versions, and fallback to pkg_resources when it fails.
      
      As an equivalent class is needed, a fallback function is not provided
      and execution will fail if neither the FreeIPA nor the pkg_resources
      parse_version function are available.
      
      Signed-off-by: default avatarRafael Guterres Jeffman <rjeffman@redhat.com>
      b1328ba7
      History
      ipareplica: Don't rely on pkg_resources whenever possible
      Rafael Guterres Jeffman authored
      
      Python's module "pkg_resources" API has been deprecated in Python 3.12
      and will be removed in a future release, and recent FreeIPA versions
      provide a replacement for pkg_resources.parse_version.
      
      To remove ansible-freeipa dependency on pkg_resources and not add a
      dependency on the 'packaging' module, which is not available in the
      standard Python distribution, we'll try to import the funcion used in
      FreeIPA to parse versions, and fallback to pkg_resources when it fails.
      
      As an equivalent class is needed, a fallback function is not provided
      and execution will fail if neither the FreeIPA nor the pkg_resources
      parse_version function are available.
      
      Signed-off-by: default avatarRafael Guterres Jeffman <rjeffman@redhat.com>
    plugins NaN GiB