Skip to content
Snippets Groups Projects
  • Rafael Guterres Jeffman's avatar
    da775a21
    ansible_freeipa_module_utils: Add EntryFactory class · da775a21
    Rafael Guterres Jeffman authored
    This patch adds the class EntryFactory to the ansible-freeipa module
    utils. This class allows the handling of modules with multiple object
    entries as list of objects. When the multi-object parameter is not used,
    it creates a list of a single object, allowing for the same code idiom
    to be used.
    
    The entries created can be used both as objects, by acessing the values
    as properties, or as dictionaires, by accessing the elements as
    key-value pairs.
    da775a21
    History
    ansible_freeipa_module_utils: Add EntryFactory class
    Rafael Guterres Jeffman authored
    This patch adds the class EntryFactory to the ansible-freeipa module
    utils. This class allows the handling of modules with multiple object
    entries as list of objects. When the multi-object parameter is not used,
    it creates a list of a single object, allowing for the same code idiom
    to be used.
    
    The entries created can be used both as objects, by acessing the values
    as properties, or as dictionaires, by accessing the elements as
    key-value pairs.