2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-02-04 13:02:25 +00:00

Merge branch 'master' into osdeploy

This commit is contained in:
Jarrod Johnson 2020-04-22 09:01:02 -04:00
commit 36911c0d2e
2 changed files with 9 additions and 0 deletions

View File

@ -113,6 +113,13 @@ _attraliases = {
}
_validroles = ('Administrator', 'Operator', 'Monitor')
def attrib_supports_expression(attrib):
attrib = _attraliases.get(attrib, attrib)
if attrib.startswith('secret.') or attrib.startswith('crypted.'):
return False
def _mkpath(pathname):
try:
os.makedirs(pathname)

View File

@ -674,6 +674,8 @@ class InputAttributes(ConfluentMessage):
if nodes is None:
self.attribs = inputdata
for attrib in self.attribs:
if not cfm.attrib_supports_expression(attrib):
continue
if type(self.attribs[attrib]) in (bytes, unicode):
try:
# ok, try to use format against the string