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_freeipa_module.py

  • Rafael Guterres Jeffman's avatar
    f2865efb
    module_utils: Fix comparison of elements not in IPA object. · f2865efb
    Rafael Guterres Jeffman authored
    This change modifies the comparison of the retrieved IPA object and the
    provided arguments on ansible_freeipa_module.compare_args_ipa when the
    provider argument is an empty string.
    
    If an attribute is not available in 'ipa', its value is considered to be
    a list with an empty string (['']), possibly forcing the conversion of
    the 'args' attribute to a list for comparison. This allows, for example,
    the usage of empty strings which should compare as equals to inexistent
    attributes (None), as is done in IPA API.
    f2865efb
    History
    module_utils: Fix comparison of elements not in IPA object.
    Rafael Guterres Jeffman authored
    This change modifies the comparison of the retrieved IPA object and the
    provided arguments on ansible_freeipa_module.compare_args_ipa when the
    provider argument is an empty string.
    
    If an attribute is not available in 'ipa', its value is considered to be
    a list with an empty string (['']), possibly forcing the conversion of
    the 'args' attribute to a list for comparison. This allows, for example,
    the usage of empty strings which should compare as equals to inexistent
    attributes (None), as is done in IPA API.