Skip to content
This repository has been archived by the owner on Mar 13, 2022. It is now read-only.

Commit

Permalink
Fix safe get safety condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin Lemaire committed Sep 6, 2019
1 parent 4c1ab55 commit 509a4c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/kube_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ def __len__(self):
return len(self.value)

def safe_get(self, key):
if (isinstance(self.value, list) and isinstance(key, int) or
if (isinstance(self.value, list) and isinstance(key, int) and
key in self.value):
return self.value[key]

Expand Down

0 comments on commit 509a4c2

Please sign in to comment.