File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,4 +14,5 @@ PyOpenSSL==0.15.1
1414pytz == 2015.7
1515PyYAML == 3.11
1616requests == 2.9.1
17+ requests-toolbelt == 0.6.0
1718simpleflock == 0.0.3
Original file line number Diff line number Diff line change 1010from docker import Client
1111from .states import JobState
1212import requests
13+ from requests_toolbelt import user_agent
1314from .utils import dict_merge
1415
16+ from deis import __version__ as deis_version
17+
1518
1619logger = logging .getLogger (__name__ )
1720
@@ -307,6 +310,7 @@ def __init__(self):
307310 session .headers = {
308311 'Authorization' : 'Bearer ' + token ,
309312 'Content-Type' : 'application/json' ,
313+ 'User-Agent' : user_agent ('Deis Controller' , deis_version )
310314 }
311315 # TODO: accessing the k8s api server by IP address rather than hostname avoids
312316 # intermittent DNS errors, but at the price of disabling cert verification.
You can’t perform that action at this time.
0 commit comments