diff --git a/changelogs/fragments/59456-find-return-values.yaml b/changelogs/fragments/59456-find-return-values.yaml new file mode 100644 index 00000000000..0834f59d904 --- /dev/null +++ b/changelogs/fragments/59456-find-return-values.yaml @@ -0,0 +1,2 @@ +minor_changes: + - Correct the return values of matched and examined from string to int diff --git a/lib/ansible/modules/files/find.py b/lib/ansible/modules/files/find.py index 0b85dfc47b5..5d451b1b366 100644 --- a/lib/ansible/modules/files/find.py +++ b/lib/ansible/modules/files/find.py @@ -197,12 +197,12 @@ files: matched: description: Number of matches returned: success - type: str + type: int sample: 14 examined: description: Number of filesystem objects looked at returned: success - type: str + type: int sample: 34 '''