Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Make the "negated" key for the WAF rules optional #5

Open
danvaida opened this issue May 4, 2020 · 0 comments
Open

Make the "negated" key for the WAF rules optional #5

danvaida opened this issue May 4, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@danvaida
Copy link

danvaida commented May 4, 2020

As the name suggests, the user should not be forced to explicitly set a value for an unused option.

We can use another local variable to manipulate the data structure using an inner loop.
Possibly enhancing this construct:

negated = length(each.value.byte_match_tuples) > 0 ? try(each.value.byte_match_tuples[0].negate, "false") : null

Change was introduced with PR #4

@danvaida danvaida added the enhancement New feature or request label May 4, 2020
@danvaida danvaida linked a pull request May 4, 2020 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant