Merge pull request #698 from ansible-collections/param-mgr-sanity
Some checks failed
Run integration tests for the cloud.google collection / integration (stable-2.16) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.17) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.18) (push) Has been cancelled

Fix an invalid format string on Python 2.7
This commit is contained in:
Chris Hawk 2025-07-29 16:24:50 -07:00 committed by GitHub
commit 61bd3d1c13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -640,7 +640,7 @@ def main():
fetch['changed'] = changed
fetch['name'] = module.params.get('name')
except Exception as e:
module.fail_json(msg=f"An unexpected error occurred: {str(e)}")
module.fail_json(msg=str(e))
module.exit_json(**fetch)