fix bash subshell for corosync::cleanup workaround

This commit is contained in:
Vladimir Kuklin 2013-03-18 18:57:51 +04:00
parent b7ec3e876c
commit 91fa29545a

View File

@ -20,7 +20,7 @@ define corosync::cleanup () {
##FIXME: we need to create a better way to workaround crm commit <-> cleanup race condition than a simple sleep
exec { "crm resource cleanup $name":
command => "(sleep 5 && crm resource cleanup $name) || :",
command => "bash -c \"(sleep 5 && crm resource cleanup $name) || :\"",
path => ['/bin', '/usr/bin', '/sbin', '/usr/sbin'],
refreshonly => true,
timeout => 600,