mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-21 17:11:58 +00:00
11 lines
350 B
Python
11 lines
350 B
Python
import confluent.config.configmanager as cfm
|
|
import sys
|
|
c = cfm.ConfigManager(None)
|
|
cfg = c.get_node_attributes(sys.argv[1], 'secret.*', decrypt=True)
|
|
for node in cfg:
|
|
for attr in cfg[node]:
|
|
val = cfg[node][attr]['value']
|
|
if not isinstance(val, str):
|
|
val = val.decode('utf8')
|
|
print('{}: {}'.format(attr, val))
|