From ff3aa2605a1f43a20d33d94779fc45247ba686b9 Mon Sep 17 00:00:00 2001 From: fernando Date: Fri, 5 Jul 2024 08:56:47 +0000 Subject: [PATCH] fix python less that 3.6 implementation --- plugins/modules/unlink_agent_linux.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/modules/unlink_agent_linux.py b/plugins/modules/unlink_agent_linux.py index 9707ca9..6aa89a6 100644 --- a/plugins/modules/unlink_agent_linux.py +++ b/plugins/modules/unlink_agent_linux.py @@ -1,6 +1,3 @@ -# (c) 2024, Fernando Mendieta (fernandomendietaovejero@gmail.com) -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - from __future__ import absolute_import from __future__ import division from __future__ import print_function @@ -51,7 +48,7 @@ def unlink_nessus_agent(module): if "No host information found" in output: return True, "No Agent is running on the server, no need to unlink" else: - module.fail_json(msg=f"Failed to unlink Nessus Agent: {output}") + module.fail_json(msg="Failed to unlink Nessus Agent: {}".format(output)) def main():