Evgeni Golov
Evgeni Golov
Can you post the --diff output? I bet it's the way the date is stored (iirc that recently changed)
Can you try using `2022-01-01 02:02:00 +0000` in your playbook?
Should this become "compare dates as dates, not strings"? But at the same time: I don't think we'd get to it anytime soon
@itcultus curious, can you show the output of your playbook with `--diff -v`? that will include the API representation of the date.
Mhh, yeah, it seems it's saved/shown as UTC (+0000) by Satellite. The module just sees that all as strings (which is why this problem exists in the first place, otherwise...
@coderabbitai review
@coderabbitai review
needs a rebase now that https://github.com/theforeman/forklift/pull/1856 is merged
> So to understand this correctly, the module is failing under the right circumstances, but for the wrong reason, right? Yeah. Most importantly, it gives an ugly stack trace instead...
Actually, I think this should be sufficient: ```python def find_resource_by(self, resource, search_field, value, required=False, **kwargs): if not value and not required: return NoEntity … ``` As the rest of the...