Bugs
pull/21/head
Aidaho12 6 years ago
parent bc87a22731
commit 5d3b74facf

@ -19,6 +19,8 @@ try:
servers = sql.get_dick_permit(virt=1)
token = sql.get_token(user_id.value)
servbackend = form.getvalue('servbackend')
if servbackend is None:
servbackend = ""
except:
pass

@ -153,8 +153,10 @@ def get_map(serv):
except Exception as e:
print('<div class="alert alert-danger">' + str(e) + '</div>')
commands = [ "rm -f "+fullpath+"/map*.png", "mv %s/map.png %s/map%s.png" % (cgi_path, fullpath, date) ]
funct.ssh_command("localhost", commands)
cmd = "rm -f "+fullpath+"/map*.png && mv "+cgi_path+"/map.png "+fullpath+"/map"+date+".png"
output, stderr = funct.subprocess_execute(cmd)
print(stderr)
print('<img src="/map%s.png" alt="map">' % date)
def show_compare_configs(serv):

Loading…
Cancel
Save