Skip to content

Commit 5c5ee1f

Browse files
committed
Refactor command execution logic to simplify parameter value retrieval
1 parent 804be35 commit 5c5ee1f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/modules/get_cluster_status_db.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,7 @@ def _get_cluster_pramaeters(self) -> None:
178178

179179
for param_name, command in param_commands.items():
180180
try:
181-
cmd_output = self.execute_command_subprocess(command).strip()
182-
self.result[param_name] = ET.fromstring(cmd_output).get("value")
181+
self.result[param_name] = self.execute_command_subprocess(command).strip()
183182
except Exception:
184183
self.result[param_name] = "unknown"
185184

0 commit comments

Comments
 (0)