Alexandros Kosiaris has submitted this change and it was merged.

Change subject: naggen2: Third fix for naggen2
......................................................................


naggen2: Third fix for naggen2

true != "true" as it seems

Change-Id: I3c37e36ab888c76eae3c5354727cef19cb9d2a09
---
M modules/puppetmaster/files/naggen2
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Alexandros Kosiaris: Verified; Looks good to me, approved



diff --git a/modules/puppetmaster/files/naggen2 
b/modules/puppetmaster/files/naggen2
index 10cc359..c9de1a7 100755
--- a/modules/puppetmaster/files/naggen2
+++ b/modules/puppetmaster/files/naggen2
@@ -97,7 +97,7 @@
   (SELECT resource_id FROM param_values
     JOIN resources ON resource_id = resources.id
     JOIN param_names ON param_names.id = param_name_id
-    WHERE restype = '%s' and exported = true AND param_names.name = 'ensure' 
AND value = 'present')
+    WHERE restype = '%s' AND exported = true AND param_names.name = 'ensure' 
AND value = 'present')
 GROUP BY resources.id ORDER BY resources.title ASC"""
 
     def load_config(self, configfile):
@@ -144,7 +144,7 @@
         resources_raw = requests.get(url, params={
             'query': '["and", \
                         ["=", ["parameter", "ensure"], "present"], \
-                        ["=", "exported", "true"] \
+                        ["=", "exported", true] \
                     ]',
         })
         return resources_raw.json()

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I3c37e36ab888c76eae3c5354727cef19cb9d2a09
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Alexandros Kosiaris <akosia...@wikimedia.org>
Gerrit-Reviewer: Alexandros Kosiaris <akosia...@wikimedia.org>

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

Reply via email to