From 61079724ed82fcbcd650a86a96091f9d553d2a4b Mon Sep 17 00:00:00 2001 From: KB-perByte Date: Thu, 25 Jan 2024 22:27:12 +0530 Subject: [PATCH] fix lint 1 --- src/ansiblelint/rules/galaxy.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ansiblelint/rules/galaxy.py b/src/ansiblelint/rules/galaxy.py index 06228e8e76..0679ad22de 100644 --- a/src/ansiblelint/rules/galaxy.py +++ b/src/ansiblelint/rules/galaxy.py @@ -6,8 +6,6 @@ from typing import TYPE_CHECKING, Any from ansiblelint.constants import FILENAME_KEY, LINE_NUMBER_KEY -from ansiblelint.errors import MatchError -from ansiblelint.file_utils import Lintable from ansiblelint.rules import AnsibleLintRule if TYPE_CHECKING: @@ -37,6 +35,7 @@ class GalaxyRule(AnsibleLintRule): def matchplay(self, file: Lintable, data: dict[str, Any]) -> list[MatchError]: """Return matches found for a specific play (entry in playbook).""" + changelog_file_data = [] if file.kind == "changelog": global CHANGELOG_FILE CHANGELOG_FILE = list(changelog_file_data.data.get("releases", None).keys())