-
-
Notifications
You must be signed in to change notification settings - Fork 241
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
use Optional instead of Variant[Undef... #73
Conversation
manifests/nginx_vts_exporter.pp
Outdated
String $bin_dir = $::prometheus::params::bin_dir, | ||
String $nginx_scrape_uri = $::prometheus::params::nginx_vts_exporter_nginx_scrape_uri, | ||
String $download_extension = $::prometheus::params::nginx_vts_exporter_download_extension, | ||
Optional[String] $download_url = 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.
This looks good to me, but if you're going to line up the params, I think you need one more space here? Or, alternately, do what most modules do, and don't align the second column (though to me, this actually is easier to read).
I think if it's >= Puppet 4, you can also go back to $prometheus
vs $::prometheus
if you like (the former is actually preferred now).
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.
thanks for the input. fixed
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.
Other than the formatting, this looks good to me... do you want to fix the spacing and squash?
@TheMeier Could you squash those 2 commits? Thanks. |
align indentation switch from $::prometheus... to $prometheus...
squashed |
@TheMeier Thanks! |
use Optional instead of Variant[Undef...
use Optional instead of Variant[Undef...
align indentation