aboutsummaryrefslogtreecommitdiffstats
path: root/modules/postgresql
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-06-17 16:38:35 +0000
committerMichael Scherer <misc@mageia.org>2011-06-17 16:38:35 +0000
commitb1678cee8b3f7ea3115faf0094b99237324afa74 (patch)
treef5a938fe8e5dc23b33a3a15b08df15f3368b418a /modules/postgresql
parentd0335859f2bc006383b10c51a2b9637a7cce537e (diff)
downloadpuppet-b1678cee8b3f7ea3115faf0094b99237324afa74.tar
puppet-b1678cee8b3f7ea3115faf0094b99237324afa74.tar.gz
puppet-b1678cee8b3f7ea3115faf0094b99237324afa74.tar.bz2
puppet-b1678cee8b3f7ea3115faf0094b99237324afa74.tar.xz
puppet-b1678cee8b3f7ea3115faf0094b99237324afa74.zip
do not try to send a notify if not needed
Diffstat (limited to 'modules/postgresql')
-rw-r--r--modules/postgresql/manifests/init.pp8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/postgresql/manifests/init.pp b/modules/postgresql/manifests/init.pp
index 6be6bf42..0412f6e0 100644
--- a/modules/postgresql/manifests/init.pp
+++ b/modules/postgresql/manifests/init.pp
@@ -151,9 +151,11 @@ class postgresql {
define database_callback($callback_notify = '') {
# dummy declaration, so we can trigger the notify
- exec { "callback $name":
- command => "true",
- notify => $callback_notify,
+ if $callback_notify {
+ exec { "callback $name":
+ command => "true",
+ notify => $callback_notify,
+ }
}
}