use type=rdonly for modules without target, but with a value
This commit is contained in:
2
secop.py
2
secop.py
@ -60,8 +60,8 @@ class SecopInteractor(SecopClient):
|
||||
|
||||
def add_main_components(self, components):
|
||||
for name, desc in self.modules.items():
|
||||
component = {'type': 'none'}
|
||||
parameters = desc['parameters']
|
||||
component = {'type': 'rdonly' if 'value' in parameters else 'none'}
|
||||
if 'status' in parameters:
|
||||
component['statusname'] = f'{name}:status'
|
||||
targetpar = parameters.get('target')
|
||||
|
Reference in New Issue
Block a user