diff options
author | Michael Scherer <misc@mageia.org> | 2011-06-17 16:38:35 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-06-17 16:38:35 +0000 |
commit | b1678cee8b3f7ea3115faf0094b99237324afa74 (patch) | |
tree | f5a938fe8e5dc23b33a3a15b08df15f3368b418a /modules/postgresql/manifests | |
parent | d0335859f2bc006383b10c51a2b9637a7cce537e (diff) | |
download | puppet-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/manifests')
-rw-r--r-- | modules/postgresql/manifests/init.pp | 8 |
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, + } } } |