This commit is contained in:
Thomas E Lackey 2024-03-04 17:09:11 -06:00
parent 53b29ff69b
commit 3c7ff76a83

View File

@ -121,8 +121,7 @@ class Spec:
return self.obj.get(constants.labels_key, {}) return self.obj.get(constants.labels_key, {})
def get_privileged(self): def get_privileged(self):
return "true" == str(self.obj.get(constants.security_key, {}) return "true" == str(self.obj.get(constants.security_key, {}).get("privileged", "false")).lower()
.get("privileged", "false")).lower()
def get_capabilities(self): def get_capabilities(self):
return self.obj.get(constants.security_key, {}).get("capabilities", []) return self.obj.get(constants.security_key, {}).get("capabilities", [])