forked from cerc-io/stack-orchestrator
fmt
This commit is contained in:
parent
53b29ff69b
commit
3c7ff76a83
@ -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", [])
|
||||||
|
Loading…
Reference in New Issue
Block a user