From 568e18809c7cb0b7057feb77bbc919efe5752d8d Mon Sep 17 00:00:00 2001
From: "Fabian P. Schmidt" <kerel@mailbox.org>
Date: Fri, 30 Dec 2022 22:35:03 +0100
Subject: [PATCH] unixy Callback: Fix typo using ansibles config manager
 (#5744)

Fixes typo introduced in 53da86c.

Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>

Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
---
 .../fragments/5744-unixy-callback-fix-config-manager-typo.yml   | 2 ++
 plugins/callback/unixy.py                                       | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
 create mode 100644 changelogs/fragments/5744-unixy-callback-fix-config-manager-typo.yml

diff --git a/changelogs/fragments/5744-unixy-callback-fix-config-manager-typo.yml b/changelogs/fragments/5744-unixy-callback-fix-config-manager-typo.yml
new file mode 100644
index 0000000000..d60b43d3d4
--- /dev/null
+++ b/changelogs/fragments/5744-unixy-callback-fix-config-manager-typo.yml
@@ -0,0 +1,2 @@
+bugfixes:
+  - unixy callback plugin - fix typo introduced when updating to use Ansible's configuration manager for handling options (https://github.com/ansible-collections/community.general/issues/5600).
diff --git a/plugins/callback/unixy.py b/plugins/callback/unixy.py
index 55f46afd32..02a2e46ba6 100644
--- a/plugins/callback/unixy.py
+++ b/plugins/callback/unixy.py
@@ -142,7 +142,7 @@ class CallbackModule(CallbackModule_default):
             display_color = C.COLOR_CHANGED
             task_result = self._process_result_output(result, msg)
             self._display.display("  " + task_result, display_color)
-        elif self.get('display_ok_hosts'):
+        elif self.get_option('display_ok_hosts'):
             task_result = self._process_result_output(result, msg)
             self._display.display("  " + task_result, display_color)