mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-02-13 05:21:50 +00:00
use the correct starrs procedure to check hostnames
This commit is contained in:
parent
05f43852ee
commit
8487d86044
1 changed files with 2 additions and 4 deletions
|
@ -48,10 +48,8 @@ def check_hostname(starrs, hostname):
|
||||||
try:
|
try:
|
||||||
c.execute("BEGIN")
|
c.execute("BEGIN")
|
||||||
c.callproc("api.initialize", ('root', ))
|
c.callproc("api.initialize", ('root', ))
|
||||||
c.callproc("api.validate_name", (hostname, ))
|
c.callproc("api.validate_domain", (hostname, 'csh.rit.edu'))
|
||||||
valid = False
|
valid = c.fetchall()[0][0]
|
||||||
if hostname == c.fetchall()[0][0]:
|
|
||||||
valid = True
|
|
||||||
c.execute("COMMIT")
|
c.execute("COMMIT")
|
||||||
c.execute("BEGIN")
|
c.execute("BEGIN")
|
||||||
c.callproc("api.initialize", ('root', ))
|
c.callproc("api.initialize", ('root', ))
|
||||||
|
|
Loading…
Reference in a new issue