From 8e9c8c5b8fefcf07474541381e31c024e907b53a Mon Sep 17 00:00:00 2001 From: UNR Information Security <40803249+unrinfosec@users.noreply.github.com> Date: Thu, 25 Jul 2019 13:47:39 -0700 Subject: [PATCH] Fix return values types for find module in docs (#59480) * Update find.py (#59456) Return values for `matched` and `examined` in the find module are integers and not strings. (cherry picked from commit 7b4ce9e4aee8f2d131ea0176456054b3ecbd4002) --- changelogs/fragments/59456-find-return-values.yaml | 2 ++ lib/ansible/modules/files/find.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 changelogs/fragments/59456-find-return-values.yaml 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 '''