Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generator: lasting is per rule only and mandatory like threshold #274

Merged
merged 2 commits into from
Apr 14, 2021

Conversation

xp-1000
Copy link
Contributor

@xp-1000 xp-1000 commented Apr 14, 2021

the lasting variable is "mandatory" (created as soon it has been configured) and its scope is rule only exactly like thresholds

the disabled is little special because it is also available at detector and global scope. But this is useless to provide a per rule variable if there is only one rule given that disabling the entire detector will does the same than disabling its only rule.

When we integrated this feature from #248 I did not this error because we did not have any detector with only one rule using lasting.

so it works until now but the proper way to implement this is define lasting in the same block we define thresholds (and not the disabled per rule one).

I add @jmapro as reviewer to let him now this change on this feature.

@egouraud-claranet you should be able to fix the ci on #271 after rebasing on this PR.

@xp-1000 xp-1000 added bug Something isn't working templating About modules templating or terraform capabilities labels Apr 14, 2021
@xp-1000 xp-1000 added this to the v1.5.0 milestone Apr 14, 2021
@xp-1000 xp-1000 self-assigned this Apr 14, 2021
@xp-1000 xp-1000 added this to In progress in Claranet via automation Apr 14, 2021
@xp-1000
Copy link
Contributor Author

xp-1000 commented Apr 14, 2021

Claranet automation moved this from In progress to Reviewer approved Apr 14, 2021
@xp-1000 xp-1000 merged commit 8dc82f3 into master Apr 14, 2021
Claranet automation moved this from Reviewer approved to Done Apr 14, 2021
@xp-1000 xp-1000 deleted the fix_lasting_variable_scope branch April 14, 2021 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working templating About modules templating or terraform capabilities
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants