Skip to content

ansible_base.lib.utils.models.diff takes unused sanitize_encrypted param and has outdated return docstring #688

@relrod

Description

@relrod

ansible_base.lib.utils.models.diff takes a param called sanitize_encrypted which was meant to be a way to allow the function to return raw values for encrypted fields instead of returning the ENCRYPTED_STRING constant.

The code doesn't make use of this param, though (it always returns ENCRYPTED_STRING for encrypted fields). Either it should, or the param should be dropped.

Also the :return: docstring still says the function returns a dictionary; it doesn't, it returns a ModelDiff (defined directly above the function).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions