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

Changed Integer parameters into Icinga2::Interval #654

Merged
merged 1 commit into from
Apr 21, 2021

Conversation

hp197
Copy link

@hp197 hp197 commented Mar 15, 2021

Where applicable I changed to parameter types to Icinga2::Interval.
This makes the module more uniform and predictable.

Signed-off-by: Henry Pauli [email protected]

Where applicable I changed to parameter types to Icinga2::Interval.
This makes the module more uniform and predictable.

Signed-off-by: Henry Pauli <[email protected]>
@lbetz
Copy link
Contributor

lbetz commented Mar 15, 2021

I don't understand, what's the point? And what do I do with values like 1m, 4h, etc.

@hp197
Copy link
Author

hp197 commented Mar 15, 2021

That's the whole point, currently values like 1m are not allowed in checkcommand, eventcommand or notificationcommand.
Only integers are allowed (in seconds).

This change changes this to for example: https://github.com/Icinga/puppet-icinga2/blob/b6f9edeca38471786d2bb6f3caaa8b9d02a7eecf/manifests/object/service.pp#L159
where you can also use '1m'.

@lbetz
Copy link
Contributor

lbetz commented Mar 15, 2021

Good point but I think we will change to Interval in checkcommand, eventcommand and so on...

@lbetz lbetz added the bug label Apr 21, 2021
@lbetz lbetz added this to the v3.1.0 milestone Apr 21, 2021
@lbetz lbetz merged commit aa4203e into voxpupuli:master Apr 21, 2021
@hp197 hp197 deleted the fix/change_attr branch August 18, 2021 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants