diff --git a/mqtt_srv.py b/mqtt_srv.py index b941a51..d2dfb07 100755 --- a/mqtt_srv.py +++ b/mqtt_srv.py @@ -364,7 +364,7 @@ def on_connect(client, userdata, flags, rc): if host.lower() == "nas": print("Getting VM info") - cmnd = "/share/ZFS530_DATA/.qpkg/QKVM/usr/bin/virsh list --all" + cmnd = "/share/ZFS532_DATA/.qpkg/QKVM/usr/bin/virsh list --all" print(cmnd) status, output = subprocess.getstatusoutput(cmnd) l = 1 @@ -382,7 +382,7 @@ def on_connect(client, userdata, flags, rc): for m in VMS: - cmnd = "/share/ZFS530_DATA/.qpkg/QKVM/usr/bin/virsh domstate " + m + cmnd = "/share/ZFS532_DATA/.qpkg/QKVM/usr/bin/virsh domstate " + m #out = subprocess.Popen(cmnd.split()) print(cmnd) status, output = subprocess.getstatusoutput(cmnd) @@ -488,7 +488,7 @@ def on_message(client, userdata, msg): cmd_type = "shutdown" - cmnd = "/share/ZFS530_DATA/.qpkg/QKVM/usr/bin/virsh " + cmd_type + " " + str(myObj["target"]) + cmnd = "/share/ZFS532_DATA/.qpkg/QKVM/usr/bin/virsh " + cmd_type + " " + str(myObj["target"]) subprocess.Popen(cmnd.split()) print(cmnd) if myObj["command"] == "start": @@ -1152,7 +1152,7 @@ else: elif host.lower() == "nas": print("Getting VM info") - cmnd = "/share/ZFS530_DATA/.qpkg/QKVM/usr/bin/virsh list --all" + cmnd = "/share/ZFS532_DATA/.qpkg/QKVM/usr/bin/virsh list --all" writeLog(cmnd) status, output = subprocess.getstatusoutput(cmnd) l = 1 @@ -1170,7 +1170,7 @@ else: for m in VMS: - cmnd = "/share/ZFS530_DATA/.qpkg/QKVM/usr/bin/virsh domstate " + m + cmnd = "/share/ZFS532_DATA/.qpkg/QKVM/usr/bin/virsh domstate " + m #out = subprocess.Popen(cmnd.split()) writeLog(cmnd) status, output = subprocess.getstatusoutput(cmnd)