Commit 7772b816 authored by Claudio Cavalli's avatar Claudio Cavalli
Browse files

Rimosso pc master da aule veyon

parent 7329be47
Pipeline #305 passed with stage
in 45 seconds
......@@ -31,7 +31,10 @@ server = session.get("http://proxy:13402/veyon/client_conf", params={"hostname":
if server.status_code != 200:
masterhost = socket.gethostname()
for cluster in server.json():["/usr/bin/veyon-cli", "networkobjects", "add", "location", cluster["name"]])
for pc in cluster["computers"]:["/usr/bin/veyon-cli", "networkobjects", "add", "computer", pc, "", pc, cluster["name"]])
if pc != masterhost:["/usr/bin/veyon-cli", "networkobjects", "add", "computer", pc, "", pc, cluster["name"]])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment