2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 17:43:14 +00:00

Error when noderange tries to use secret

secret. cannot be used in expressions, provide
an error in such a case.
This commit is contained in:
Jarrod Johnson 2019-10-24 12:04:47 -04:00
parent f7fe38f498
commit c0b69f64b8

View File

@ -1137,6 +1137,8 @@ class ConfigManager(object):
attribute, match = expression.split('=')
else:
raise Exception('Invalid Expression')
if attribute.startswith('secret.'):
raise Exception('Filter by secret attributes is not supported')
for node in nodes:
try:
currvals = [self._cfgstore['nodes'][node][attribute]['value']]