SHARE
TWEET

Untitled

a guest Mar 2nd, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if File.exists?('/usr/sbin/crm')
  2.   CRM.list.each do |resource|
  3.     unless node["pacemaker"]["resources"].nil?
  4.       if node["pacemaker"]["resources"][resource].nil?
  5.         log("Removing stale resource " + resource)
  6.         pacemaker_rmresource resource
  7.       end
  8.     else
  9.       pacemaker_rmresource resource
  10.     end
  11.   end
  12. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top