12 urllib3
.disable_warnings()
13 http
= urllib3
.PoolManager()
15 encoded
= data
.encode('utf-8')
17 r
= http
.request("POST", url
,
18 headers
={'Content-Type': 'application/json'}
,
22 "icon_url": "https://learn.puppet.com/static/images/logos/Puppet-Logo-Mark-Amber.png",
23 "text": "Deployed {} on {}".format(version
, project
),
26 json_data
= json
.dumps(data
)