Skip to content

Commit

Permalink
Merge pull request #43 from xcp-ng/gtn-dont-check-return-status-for-s…
Browse files Browse the repository at this point in the history
…martctl

Fix issue in integration about smartctl and return error code 4
  • Loading branch information
stormi authored Dec 20, 2023
2 parents e9415e0 + d4b8cd6 commit 5193737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SOURCES/etc/xapi.d/plugins/smartctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def get_information(session, args):
with OperationLocker():
disks = _list_disks()
for disk in disks:
cmd = run_command(["smartctl", "-j", "-a", disk])
cmd = run_command(["smartctl", "-j", "-a", disk], check=False)
results[disk] = json.loads(cmd['stdout'])
return json.dumps(results)

Expand Down

0 comments on commit 5193737

Please sign in to comment.