increase UISP API call timeout to 60s

This commit is contained in:
Robert Chacón 2023-05-25 18:08:42 -06:00 committed by GitHub
parent d22860293e
commit c6437c89a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ def uispRequest(target):
from ispConfig import UISPbaseURL, uispAuthToken
url = UISPbaseURL + "/nms/api/v2.1/" + target
headers = {'accept': 'application/json', 'x-auth-token': uispAuthToken}
r = requests.get(url, headers=headers, timeout=10)
r = requests.get(url, headers=headers, timeout=60)
return r.json()
def buildFlatGraph():