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

Merge branch 'master' into master

This commit is contained in:
catborise 2022-11-02 15:59:19 +03:00 committed by GitHub
commit fcd4b79431
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -163,7 +163,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( remoteDrbdStatus = subprocess.run(
["ssh", conn, "sudo", "drbdadm", "status", "&&", "exit"], ["ssh", conn, "sudo", "/usr/sbin/drbdadm", "status", "&&", "exit"],
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
text=True, text=True,
) )