HomeClusterLabs Projects

Refactor: cts: Drop 0-check from Environment.__getitem__()

Description

Refactor: cts: Drop 0-check from Environment.getitem()

This is a leftover from commit 514bffa2. At that time, the Environment
class did not have a contains() method. Python fell back to
getitem(0) if both contains() and iter() were undefined.

https://docs.python.org/3.8/reference/expressions.html#membership-test-details

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

Details

Provenance
nrwahl2Authored on Thu, Aug 14, 8:54 PM
Parents
rPcd7f18714926: Refactor: cts: Drop Environment.keys()
Branches
Unknown
Tags
Unknown