Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/discourse/manifests/admin.pp

Issue 9453112: Update puppet-postgresql and remove unless (Closed)
Patch Set: Created Feb. 28, 2013, 5:11 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « .hgsub ('k') | modules/discourse/manifests/postactiontype.pp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/discourse/manifests/admin.pp
===================================================================
--- a/modules/discourse/manifests/admin.pp
+++ b/modules/discourse/manifests/admin.pp
@@ -13,15 +13,13 @@
# Only confirmed accounts should be made admins
postgresql_psql {"UPDATE users SET admin = true WHERE email = '$escaped_email' AND EXISTS (SELECT * FROM email_tokens WHERE email_tokens.user_id = users.id AND email_tokens.email = users.email AND email_tokens.confirmed)":
db => 'discourse',
- psql_user => 'discourse',
- unless => 'SELECT false'
+ psql_user => 'discourse'
}
}
absent: {
postgresql_psql {"UPDATE users SET admin = false WHERE email = '$escaped_email'":
db => 'discourse',
- psql_user => 'discourse',
- unless => 'SELECT false'
+ psql_user => 'discourse'
}
}
}
« no previous file with comments | « .hgsub ('k') | modules/discourse/manifests/postactiontype.pp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld