improve command handling
This commit is contained in:
4
secop.py
4
secop.py
@ -159,8 +159,8 @@ class SecopInteractor(SecopClient):
|
|||||||
self.updates[module, parameter] = item
|
self.updates[module, parameter] = item
|
||||||
return True
|
return True
|
||||||
# called a command
|
# called a command
|
||||||
result = self.execCommandFromString(module, parameter, strvalue)
|
formatted = self.execCommandFromString(module, parameter, strvalue)[0] # ignore qualifiers
|
||||||
return {'name': f'{module}:{parameter}', 'value': str(result), 'formatted': result.formatted()}
|
return {'name': f'{module}:{parameter}', 'value': str(result), 'formatted': formatted}
|
||||||
|
|
||||||
def get_updates(self):
|
def get_updates(self):
|
||||||
updates, self.updates = self.updates, {}
|
updates, self.updates = self.updates, {}
|
||||||
|
Reference in New Issue
Block a user