This PR fixes an issue that occurs when the action plugin is called by Ansible using a Python3 backend:
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: NameError: name 'unicode' is not defined
fatal: [<host>]: FAILED! => {"msg": "Unexpected failure during module execution.", "stdout": ""}
This PR fixes an issue that occurs when the action plugin is called by Ansible using a Python3 backend:
Derived from this SO answer.