HomeClusterLabs Projects

Refactor: libstonithd: functionize converting stonith_action_t to svc_action_t

Description

Refactor: libstonithd: functionize converting stonith_action_t to svc_action_t

The only changes are:

  • Avoid unnecessary calls to basename() (action->agent is never a full path, and wouldn't work if it were, because we prefix PCMK__FENCE_BINDIR to it)
  • Use pcmk__str_copy() instead of strdup(), to assert on memory errors

Details

Provenance
kgaillotAuthored on Wed, Dec 11, 3:10 PM
Parents
rPdce4fc9490dd: Log: libstonithd: improve action re-attempt message
Branches
Unknown
Tags
Unknown