Merge pull request #738 from icetrain/master

Add missing onlyif_function to sequence grant code
This commit is contained in:
Bryan Jen 2016-02-17 14:58:01 -07:00
commit 8464e33222

View file

@ -96,11 +96,13 @@ define postgresql::server::grant (
validate_string($unless_privilege,'USAGE','ALL','ALL PRIVILEGES')
$unless_function = 'has_sequence_privilege'
$on_db = $db
$onlyif_function = undef
}
'ALL SEQUENCES IN SCHEMA': {
validate_string($_privilege,'USAGE','ALL','ALL PRIVILEGES')
$unless_function = 'custom'
$on_db = $db
$onlyif_function = undef
$schema = $object_name
@ -247,4 +249,4 @@ define postgresql::server::grant (
if($db != undef and defined(Postgresql::Server::Database[$db])) {
Postgresql::Server::Database[$db]->Postgresql_psql["grant:${name}"]
}
}
}