diff --git a/confluent_server/confluent/config/configmanager.py b/confluent_server/confluent/config/configmanager.py index f5c96cbc..ea952f38 100644 --- a/confluent_server/confluent/config/configmanager.py +++ b/confluent_server/confluent/config/configmanager.py @@ -424,6 +424,10 @@ class _ExpressionFormat(string.Formatter): key = '.' + left.attr + key left = left.value key = left.id + key + if (not key.startswith('custom.') and + _get_valid_attrname(key) not in allattributes.node): + raise ValueError( + '{0} is not a valid attribute name'.format(key)) val = self._expand_attribute(key) return val['value'] if val and 'value' in val else "" elif isinstance(node, ast.Name):