From 925bdfc472dfad09ada5a74fe26aebe5b863dc6d Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Tue, 13 May 2025 11:01:35 +0200 Subject: [PATCH] improve command handling --- secop.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/secop.py b/secop.py index 471c2b3..8e56cd7 100644 --- a/secop.py +++ b/secop.py @@ -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, {}