HomeClusterLabs Projects

Refactor: CTS: Update add_cmd calls in cts-fencing.

Description

Refactor: CTS: Update add_cmd calls in cts-fencing.

These need to be updated for the changes to the Test class.

  • Handle arguments after the command as kwargs.
  • Clean up some of the quoting used when calling these functions. Basically, change double quotes to single quotes so we can reduce some of the unnecessary escaping.
  • Remove unnecessary quotes around arguments that don't contains spaces or other characters that need to be escaped.
  • Remove unnecessary parens around single element tuples in string substutitions.

I only did these quoting and paren cleanups to callers that I was
already modifying. There's plenty more that needs to be done in this
file before the python checkers are happy.

Details

Provenance
clumensAuthored on Jun 5 2024, 2:22 PM
Parents
rP9c9defe80552: Refactor: CTS: Update add_cmd calls in cts-attrd.
Branches
Unknown
Tags
Unknown