Fixed a problem with _get_master_score failing in pacemaker-2.1.0
In pacemaker-2.1.0, the --get-value option of the crm_master command now fails if no argument is passed.
This has caused the problem in issue #194.
In this PR, the problem is solved by using the --query option instead of the --get-value option.
Hi,
As reported in #194, this is not the (only?) root case of the issue. I'm waiting for some more investigation before we can settle an appropriate fix.
Thanks for your help, stay tuned!
Regards,
We discussed the --get-value issue on pacemaker IRC chan. The argument is deprecated, but it seems this behavior is a regression as well.
Upstream is taking care of both bugs (--get-value and negative scores).
I'll keep this PR open if you don't mind. I might push some commits on this branch before merging.
Thanks