From 0d1e9d3f4971a56cf7bc29d93a6492ead59c1bb4 Mon Sep 17 00:00:00 2001
From: Rafael Guterres Jeffman <rjeffman@redhat.com>
Date: Mon, 20 Feb 2023 15:37:01 -0300
Subject: [PATCH] ansible-lint: Use 'missing-import' instead of '505'

ansible-lint is issuing an warning when using '# noqa 505' instead of
'#noqa missing-import' on playbooks. This patch changes all occurrences
of the tag to use the newer format.
---
 tests/user/test_users_absent.yml        | 2 +-
 tests/user/test_users_present.yml       | 2 +-
 tests/user/test_users_present_slice.yml | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/user/test_users_absent.yml b/tests/user/test_users_absent.yml
index 59a15fea..d59b7d33 100644
--- a/tests/user/test_users_absent.yml
+++ b/tests/user/test_users_absent.yml
@@ -10,7 +10,7 @@
   tasks:
   - name: Include users.json
     ansible.builtin.include_vars:
-      file: users.json  # noqa 505
+      file: users.json  # noqa missing-import
 
   - name: Create dict with user names
     ansible.builtin.set_fact:
diff --git a/tests/user/test_users_present.yml b/tests/user/test_users_present.yml
index 0a3279fa..c42d152c 100644
--- a/tests/user/test_users_present.yml
+++ b/tests/user/test_users_present.yml
@@ -10,7 +10,7 @@
   tasks:
   - name: Include users.json
     ansible.builtin.include_vars:
-      file: users.json  # noqa 505
+      file: users.json  # noqa missing-import
 
   - name: Users present len:{{ users | length }}
     ipauser:
diff --git a/tests/user/test_users_present_slice.yml b/tests/user/test_users_present_slice.yml
index c3274974..98bad4bd 100644
--- a/tests/user/test_users_present_slice.yml
+++ b/tests/user/test_users_present_slice.yml
@@ -12,7 +12,7 @@
   tasks:
   - name: Include users.json
     ansible.builtin.include_vars:
-      file: users.json  # noqa 505
+      file: users.json  # noqa missing-import
   - name: Size of users slice.
     ansible.builtin.debug:
       msg: "{{ users | length }}"
-- 
GitLab