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:
parent
f7fe38f498
commit
c0b69f64b8
@ -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']]
|
||||
|
Loading…
Reference in New Issue
Block a user