Alexandros Kosiaris has uploaded a new change for review.

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

Change subject: hiera role_backend: Don't qualify the _roles variable
......................................................................

hiera role_backend: Don't qualify the _roles variable

After 3.5, puppetmaster spew warnings like
(Scope(Class[main])) Could not look up qualified variable '::_roles';
Remove the force qualify from the _roles variable to allow hiera to look
it up in the current scope(which is by default anyway the top scope)

Change-Id: I057eb01e9a49dde6772b6aa256c8e658057abda3
---
M modules/wmflib/lib/hiera/backend/role_backend.rb
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/74/302674/1

diff --git a/modules/wmflib/lib/hiera/backend/role_backend.rb 
b/modules/wmflib/lib/hiera/backend/role_backend.rb
index 8bdf242..8de978c 100644
--- a/modules/wmflib/lib/hiera/backend/role_backend.rb
+++ b/modules/wmflib/lib/hiera/backend/role_backend.rb
@@ -115,7 +115,7 @@
       end
 
       def lookup(key, scope, order_override, resolution_type)
-        topscope_var = '::_roles'
+        topscope_var = '_roles'
         resultset = nil
         return nil unless scope.include?topscope_var
         roles = scope[topscope_var]

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I057eb01e9a49dde6772b6aa256c8e658057abda3
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Alexandros Kosiaris <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to