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

use Optional instead of Variant[Undef... #73

Merged
merged 1 commit into from
Oct 20, 2017

Conversation

TheMeier
Copy link
Contributor

align indentation

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,
Copy link
Contributor

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).

Copy link
Contributor Author

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

Copy link
Contributor

@wyardley wyardley left a 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?

@alexjfisher
Copy link
Member

@TheMeier Could you squash those 2 commits? Thanks.

align indentation
switch from $::prometheus... to $prometheus...
@TheMeier
Copy link
Contributor Author

squashed

@alexjfisher alexjfisher merged commit fb0ad42 into voxpupuli:master Oct 20, 2017
@alexjfisher
Copy link
Member

@TheMeier Thanks!

cegeka-jenkins pushed a commit to cegeka/puppet-prometheus that referenced this pull request Aug 28, 2019
use Optional instead of Variant[Undef...
Rovanion pushed a commit to Rovanion/puppet-prometheus that referenced this pull request May 5, 2021
use Optional instead of Variant[Undef...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants