1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-25 07:35:22 +00:00

Fix DRBD command

This commit is contained in:
Info-IIG 2022-09-07 11:39:27 +02:00
parent 3b43081b9d
commit 4569dd03f9

View file

@ -145,7 +145,7 @@ def drbd_status(request, pk):
if instance.compute.type == 2: if instance.compute.type == 2:
conn = instance.compute.login + "@" + instance.compute.hostname 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: if remoteDrbdStatus.stdout:
try: try: