I've added your helper to https://github.com/crowbar/barclamp-pacemaker/pull/12 so you can use it now :-)