Skip to content

Commit e5da84c

Browse files
committed
Suppress InSecureRequestWarning
1 parent 54fbe28 commit e5da84c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

restclient.py

+3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
from collections import namedtuple
33

44
import requests
5+
import urllib3
56
from requests.exceptions import HTTPError
67
from typing import Iterable
78

89
import logging_aux
910

11+
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
12+
1013
GrowDecision = namedtuple("GrowDecision", "cores_to_grow nodes_to_grow sockets_to_grow")
1114
IdleNode = namedtuple("IdleNode", "node_name timestamp server_name")
1215

0 commit comments

Comments
 (0)