Skip to content

Commit

Permalink
Fixed a misleading error message on IP/Port/CIDR Checks. (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
eerkunt committed Jul 16, 2019
1 parent b230185 commit d07119f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# CHANGELOG

### 1.0.24 (2019-07-16)
* Fixed a failure message where it was misleading. (follow up on [#127](https://github.com/eerkunt/terraform-compliance/issues/127#issuecomment-511990432))

### 1.0.23 (2019-07-16)
* Fixed a bug where a resource might have multiple values (with same key). (follow up on [#1261](https://github.com/eerkunt/terraform-compliance/issues/126))
* Fixed a bug where a resource might have multiple values (with same key). (follow up on [#126](https://github.com/eerkunt/terraform-compliance/issues/126))
* Improved `its value must not be null` step that is also checking if the value is set to `''`.

### 1.0.22 (2019-07-16)
Expand Down
5 changes: 3 additions & 2 deletions terraform_compliance/common/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,13 @@ def validate_sg_rule(plan_data, params, condition):

if not port_intersection and network_check:
raise Failure('{}/{} ports are defined for {} network. '
'Must be limited to {}/{}'.format('/'.join(plan_data['protocol']),
'Must be limited to {}/{} and {}'.format('/'.join(plan_data['protocol']),
'{}-{}'.format(plan_data['from_port'],
plan_data['to_port']),
plan_data['cidr_blocks'],
'/'.join(plan_data['protocol']),
from_to_port))
from_to_port,
given_network))

# Condition: must not have
# Fail only if ;
Expand Down
2 changes: 1 addition & 1 deletion terraform_compliance/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from radish.main import main as call_radish

__app_name__ = "terraform-compliance"
__version__ = "1.0.23"
__version__ = "1.0.24"

print('{} v{} initiated\n'.format(__app_name__, __version__))

Expand Down

0 comments on commit d07119f

Please sign in to comment.