HomeClusterLabs Projects

Refactor: cts: Simplify cts-lab --cib-filename processing

Description

Refactor: cts: Simplify cts-lab --cib-filename processing

"not self.env['CIBfilename']" means either None or empty string. It
wouldn't make sense to try to manipulate a file whose name is the empty
string. So update clustermanager.py for clarity and idiomaticity.

Use a ternary for setting self["CIBfilename"] in the first place.

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Fri, Aug 15, 4:34 AM
Parents
rP70dd5a85fe31: Refactor: cts: De-nest cts-lab --fencing arg processing
Branches
Unknown
Tags
Unknown