Giuseppe Lavagetto has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/311117

Change subject: prometheus: ruby has Array.push, not append
......................................................................

prometheus: ruby has Array.push, not append

Change-Id: I83162c8b945c899a0c56ff73c76c83760450b036
---
M modules/role/templates/prometheus/node_site.yaml.erb
1 file changed, 3 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/17/311117/1

diff --git a/modules/role/templates/prometheus/node_site.yaml.erb 
b/modules/role/templates/prometheus/node_site.yaml.erb
index 417ad9d..ba7abe4 100644
--- a/modules/role/templates/prometheus/node_site.yaml.erb
+++ b/modules/role/templates/prometheus/node_site.yaml.erb
@@ -6,11 +6,12 @@
 
 clusters.each do |cluster, sites|
   sites.each do |site, targets|
-  all.append(
+  all.push(
     {
       'labels' => {'cluster' => cluster, 'site' => site },
       'targets' => targets,
-    })
+    }
+  )
   end
 end
 -%>

-- 
To view, visit https://gerrit.wikimedia.org/r/311117
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I83162c8b945c899a0c56ff73c76c83760450b036
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Giuseppe Lavagetto <glavage...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to