Skip to content

Commit

Permalink
fix python less that 3.6 implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
fernando committed Jul 5, 2024
1 parent eb7df5e commit ff3aa26
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions plugins/modules/unlink_agent_linux.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# (c) 2024, Fernando Mendieta ([email protected])
# 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
Expand Down Expand Up @@ -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():
Expand Down

0 comments on commit ff3aa26

Please sign in to comment.