mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-25 15:45:23 +00:00
Fix DRBD command
This commit is contained in:
parent
3b43081b9d
commit
4569dd03f9
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue