HomeClusterLabs Projects

Low: tools: only create validate parameters table when needed

Description

Low: tools: only create validate parameters table when needed

Previously, crm_resource would always initialize the parameters hash table for
--validate, and not free it in main() since the handler for --validate would
free it. However if --validate was not called, it would be created and not
freed.

Now, it's only created when --option or --validate is specified. If --option is
specified without --validate, it will free the table. (Ideally, we'd error out
in that situation, but that will have to wait for a backward compatibility
break.)

Details

Provenance
kgaillotAuthored on Sep 11 2020, 6:15 PM
Parents
rP717d4a73a35d: Low: tools: use glib types/free in crm_resource where appropriate to GOption
Branches
Unknown
Tags
Unknown

Event Timeline