HomeClusterLabs Projects
Diffusion Booth 3da245e794d0

pacemaker: Use long format for crm_ticket -v

Description

pacemaker: Use long format for crm_ticket -v

Previously the -v option was used for passing attribute value. To ensure
value "-1" could be stored (owner attribute) no space was added between
-v and value (so for example cli option was -v0).

This is deprecated and pacemaker reports following warning:

Deprecated argument format '-v0' used.
Please use '-v 0' instead.  Support will be removed in a future release.

Solution seems to be to migrate to long format arguments
(--attr-value=). Only --attr-value is migrated because other
usages contains space between option and value. Also this keeps
patch smaller with lower chance to overflow cmd line buffer.

Also (better safe than sorry) cmd line buffer is increased to 2048 bytes.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>

Details

Provenance
jfriesseAuthored on Nov 14 2023, 12:33 PM
Parents
rB7e33a45d6898: pacemaker: Check snprintf return values
Branches
Unknown
Tags
Unknown

Event Timeline