Skip to content

Commit

Permalink
change format
Browse files Browse the repository at this point in the history
  • Loading branch information
FanchenBao committed Aug 10, 2019
1 parent 96892a6 commit f2709a2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions validator/sql_allowed_authorized_networks.rego
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ deny[{
allowed_authorized_networks = lib.get_default(params, "authorized_networks", [])

# Check whether authorizedNetworks field exists, so that
# we can report violation when this field is not set
config_auth_networks = lib.get_default(asset.resource.data.settings.ipConfiguration, "authorizedNetworks", [{"value":"authorized network unspecified"}])
# we can report violation when this field is not set
config_auth_networks = lib.get_default(asset.resource.data.settings.ipConfiguration, "authorizedNetworks", [{"value": "authorized network unspecified"}])

configured_networks := {network |
network = config_auth_networks[_].value
}
configured_networks := {network |
network = config_auth_networks[_].value
}

matched_networks := {network |
network = configured_networks[_]
Expand Down

0 comments on commit f2709a2

Please sign in to comment.