Skip to content

Commit

Permalink
Update stack_name_matches_regex.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoucheiron authored Nov 27, 2023
1 parent 6ffe596 commit 90c67f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cfripper/rules/stack_name_matches_regex.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ def _stack_name_matches_regex(self, stack_name: str) -> bool:

def invoke(self, cfmodel: CFModel, extras: Optional[Dict] = None) -> Result:
result = Result()
if not extras:
extras = {}
stack_name = self._config.stack_name or extras.get("stack_name", "")
if not stack_name:
return result
if not extras:
extras = {}

if not self._stack_name_matches_regex(stack_name):
self.add_failure_to_result(
Expand Down

0 comments on commit 90c67f6

Please sign in to comment.