Skip to content

Commit

Permalink
Update stack_name_matches_regex.py (#261)
Browse files Browse the repository at this point in the history
* Update stack_name_matches_regex.py

* Update changelog and version
  • Loading branch information
jsoucheiron authored Dec 4, 2023
1 parent 6ffe596 commit 5b50aa7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
### Fixes
- Fix documentation.

## [1.15.2]
### Fixes
- Fixes https://github.com/Skyscanner/cfripper/issues/260

## [1.15.1]
### Fixes
- Fix docs generation

## [1.15.0]
### Additions
- New rules: `PublicELBCheckerRule`, `StackNameMatchesRegexRule`, and `StorageEncryptedRule`
Expand Down
2 changes: 1 addition & 1 deletion cfripper/__version__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VERSION = (1, 15, 1)
VERSION = (1, 15, 2)

__version__ = ".".join(map(str, VERSION))
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 5b50aa7

Please sign in to comment.