improve command handling
This commit is contained in:
1 parent
7bb60ddc37
commit
8fc2c9a1f9
1 file changed
+2
-2
@@ -159,8 +159,8 @@ class SecopInteractor(SecopClient):
|
||||
self.updates[module, parameter] = item
|
||||
return True
|
||||
# called a command
|
||||
result = self.execCommandFromString(module, parameter, strvalue)
|
||||
return {'name': f'{module}:{parameter}', 'value': str(result), 'formatted': result.formatted()}
|
||||
formatted = self.execCommandFromString(module, parameter, strvalue)[0] # ignore qualifiers
|
||||
return {'name': f'{module}:{parameter}', 'value': str(result), 'formatted': formatted}
|
||||
|
||||
def get_updates(self):
|
||||
updates, self.updates = self.updates, {}
|
||||
|
||||
Reference in new issue
Block a user