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

Remove 127.0.0.1 special case naming #26

Merged
merged 1 commit into from
Oct 16, 2019

Conversation

reidmv
Copy link
Contributor

@reidmv reidmv commented Oct 16, 2019

The 127.0.0.1 thing is a holdover from before we defaulted to smart configuration of metrics collection. It isn't good UX to use that name though. We should remove it from the defaults so that users don't need to know about or be confused by this legacy 127.0.0.1 thing.

johnduarte
johnduarte previously approved these changes Oct 16, 2019
Copy link
Contributor

@johnduarte johnduarte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RandellP
RandellP previously approved these changes Oct 16, 2019
@RandellP
Copy link
Contributor

@reidmv doesn't look like the linter likes your change to the else syntax...

The 127.0.0.1 thing is a hold-over from before we defaulted to smart
configuration of metrics collection. It isn't good UX to use that name
though. We should remove it from the defaults so that users don't need
to know about or be confused by this legacy 127.0.0.1 thing.
@reidmv
Copy link
Contributor Author

reidmv commented Oct 16, 2019

@RandellP heh; that would be because it's a syntax error. Mismatched braces. Force-pushing an amended commit with a fix. Oops.

diff --git a/functions/hosts_with_pe_profile.pp b/functions/hosts_with_pe_profile.pp
index 23e0130..5c44afe 100644
--- a/functions/hosts_with_pe_profile.pp
+++ b/functions/hosts_with_pe_profile.pp
@@ -21,7 +21,6 @@ function puppet_metrics_collector::hosts_with_pe_profile($profile) {
                title = 'Puppet_enterprise::Profile::${_profile}' and
                nodes { deactivated is null and expired is null }
               }").map |$nodes| { $nodes['certname'] }
-    }
   }
   else {
     $hosts = []

@johnduarte johnduarte merged commit 8607626 into puppetlabs:master Oct 16, 2019
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.

None yet

4 participants