On 16/10/19 10:53 +0200, Ulrich Windl wrote:
Hi!
I just discovered an interesting problem with my own RA that allows a boolean
parameter:
Where is the exact syntax for "boolean" defined, and who's responsible for
checking it? The RA or (e.g.) crm?
The concrete problem is that my RA expected the boolean parameter to be either '0' or
'1', but crm shell was happy with the value "true".
So where is the document describing the parameter types' syntax, and who is
responsible for checking that? RA's validate-all?
This is done by the validate-all action for the RA.
Sounds like the agent should use "ocf_is_true" instead of checking
against a specific value.
Feel free to create a pull request or issue on
https://github.com/ClusterLabs/resource-agents.
Oyvind
Regards,
Ulrich
_______________________________________________
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users
ClusterLabs home: https://www.clusterlabs.org/
_______________________________________________
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users
ClusterLabs home: https://www.clusterlabs.org/