HomeClusterLabs Projects

Refactor: cts: Drop key == "Name" test from ClusterManager.__getitem__()
72f0093ae7eeUnpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Refactor: cts: Drop key == "Name" test from ClusterManager.getitem()

name is a public member, so access it directly. It wouldn't hurt to
make it a property in the future, but there's no reason to treat it like
a dict member.

We replace a couple of existing self.templates["Name"] uses as well.
Note that self.templates["Name"] ends up being exactly self.name for a
Corosync2 instance ("crm-corosync") and incorrect for any other type of
ClusterManager ("crm-base").

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

Details

Provenance
nrwahl2Authored on Sun, Aug 17, 10:14 PM

Event Timeline

Commit No Longer Exists

This commit no longer exists in the repository.