Skip to content

Commit

Permalink
Update to reflect ngi-preproc
Browse files Browse the repository at this point in the history
  • Loading branch information
aanil committed May 23, 2024
1 parent 0a6a4b8 commit f2d9b3f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions taca/server_status/server_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ def get_nases_disk_space():
config = CONFIG["server_status"]
servers = config.get("servers", dict())

for server_url, path in servers.items():
for server_url, path_vars in servers.items():
# Get command
command = "{command} {path}".format(command=config["command"], path=path)

# If localhost, don't connect to ssh
command = config["command"]
if server_url == "localhost":
command = command.split()
path = path_vars["path"]
server_url = path_vars["name"]
command = f"{command} {path}".split()
else:
command = f"{command} {path_vars}"
if "promethion" in server_url:
user = "prom"
else:
Expand Down

0 comments on commit f2d9b3f

Please sign in to comment.