-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Fix wrong end-tag resulting in blank line. #85
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙋🏻♀️
how is this module currently tested?
how could we regression test changes between module upgrades anyway??
Perhaps we could add |
I tried that, and imediately found an other bug
Is adding a blank line when refclocks is [] |
you want to test whether that is empty then, or else give it undef as default |
I think we should add type constrain Array to it in init.pp instead. And just remove the if test. |
the |
And ofcourse you are right. The |
since this pr is about fixing whitespace, i'd do that here. |
Make sense, ok, I'll do that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please also add that test you spoke about, i don't see it
then, this should be good to go
The test `if $chrony::refclocks` was wrong, resulting in a blank line when $refclocks is an empty array. This tests instead for emptiness.
Ok, I'll rebase to master (because the added gentoo tests) and add a test for double blank lines. I'll add a separate PR later for restructuring the tests to match the gentoo case. |
No description provided.