From 4569dd03f97d750d7aa5646b3ff50ea68e3bed79 Mon Sep 17 00:00:00 2001 From: Info-IIG Date: Wed, 7 Sep 2022 11:39:27 +0200 Subject: [PATCH] Fix DRBD command --- instances/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instances/views.py b/instances/views.py index ca998e3..1c97523 100644 --- a/instances/views.py +++ b/instances/views.py @@ -145,7 +145,7 @@ def drbd_status(request, pk): if instance.compute.type == 2: conn = instance.compute.login + "@" + instance.compute.hostname - remoteDrbdStatus = subprocess.run(["ssh", conn, "sudo", "drbdadm", "status", "&&", "exit"], stdout=subprocess.PIPE, text=True) + remoteDrbdStatus = subprocess.run(["ssh", conn, "sudo", "/usr/sbin/drbdadm", "status", "&&", "exit"], stdout=subprocess.PIPE, text=True) if remoteDrbdStatus.stdout: try: