-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
remove resolved settings from config when changed to absent
#429
Conversation
The fear is that since undef is the default this is now an action. It's probably okay with this parameter. I always quite like yumrepo's explicit |
I see you point. I can't follow your comparison to yumrepo here. These are class parameters, yumrepo is more
|
But wasn't the whole point to find a way to set |
56c41ad
to
bf96af3
Compare
@traylenator I have changed the code for an alternative solution... please have another look |
6d83293
to
14a42fe
Compare
The commit message and PR description no longer match the actual code. Would you mind fixing that up to avoid confusion in the future? |
absent
fixes #397 Co-authored-by: Tim Meusel <[email protected]>
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.
Small nits, but overall 👍
@@ -204,8 +206,8 @@ | |||
Optional[Variant[Boolean,Enum['allow-downgrade']]] $dnssec = undef, | |||
Variant[Boolean,Enum['yes', 'opportunistic', 'no']] $dnsovertls = false, | |||
Optional[Variant[Boolean,Enum['no-negative']]] $cache = undef, | |||
Optional[Variant[Boolean,Enum['udp','tcp']]] $dns_stub_listener = undef, | |||
Optional[Array[String[1]]] $dns_stub_listener_extra = undef, | |||
Optional[Variant[Boolean,Enum['udp','tcp','absent']]] $dns_stub_listener = undef, |
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.
Optional[Variant[Boolean,Enum['udp','tcp','absent']]] $dns_stub_listener = undef, | |
Optional[Variant[Boolean,Enum['udp','tcp','absent']]] $dns_stub_listener = undef, |
Optional[Variant[Boolean,Enum['udp','tcp']]] $dns_stub_listener = undef, | ||
Optional[Array[String[1]]] $dns_stub_listener_extra = undef, | ||
Optional[Variant[Boolean,Enum['udp','tcp','absent']]] $dns_stub_listener = undef, | ||
Optional[Variant[Array[String[1]],Enum['absent']]] $dns_stub_listener_extra = undef, |
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.
For a bit more readable type you can consider this:
Optional[Variant[Array[String[1]],Enum['absent']]] $dns_stub_listener_extra = undef, | |
Variant[Undef, Array[String[1]], Enum['absent']] $dns_stub_listener_extra = undef, |
Pull Request (PR) description
When
dns_stub_listener
anddns_stub_listener_extra
are changed from a value toundef
they don't get removed from the config.There is plenty more settings here that could use the same treatment I guess
This Pull Request (PR) fixes the following issues
Fixes #397