From 10938ae9aac37e6181165ca443092be7e2a7216c Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 26 Sep 2024 15:26:38 -0400 Subject: [PATCH] self is module, no module in self as self is --- lib/ansible/module_utils/basic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/module_utils/basic.py b/lib/ansible/module_utils/basic.py index 125a5dfdba4..77765960e9d 100644 --- a/lib/ansible/module_utils/basic.py +++ b/lib/ansible/module_utils/basic.py @@ -1600,9 +1600,9 @@ class AnsibleModule(object): b_dest = to_bytes(dest, errors='surrogate_or_strict') if not os.path.isabs(src): - self.module.warn('The source path for atomic_move is not an absolute path, this might not work and will be enforced in the future') + self.warn('The source path for atomic_move is not an absolute path, this might not work and will be enforced in the future') if not os.path.isabs(dest): - self.module.warn('The desitination path for atomic_move is not an absolute path, this might not work and will be enforced in the future') + self.warn('The desitination path for atomic_move is not an absolute path, this might not work and will be enforced in the future') if os.path.exists(b_dest) and keep_dest_attrs: try: