mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-02-12 21:11:53 +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:
|
||||
c.execute("BEGIN")
|
||||
c.callproc("api.initialize", ('root', ))
|
||||
c.callproc("api.validate_name", (hostname, ))
|
||||
valid = False
|
||||
if hostname == c.fetchall()[0][0]:
|
||||
valid = True
|
||||
c.callproc("api.validate_domain", (hostname, 'csh.rit.edu'))
|
||||
valid = c.fetchall()[0][0]
|
||||
c.execute("COMMIT")
|
||||
c.execute("BEGIN")
|
||||
c.callproc("api.initialize", ('root', ))
|
||||
|
|
Loading…
Reference in a new issue