MCPcopy
hub / github.com/certbot/certbot / get_mattermost_url

Function get_mattermost_url

tools/notify_mattermost.py:50–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48 return message
49
50def get_mattermost_url():
51 # This should be a mattermost webhook url that posts to a specific channel,
52 # created by certbotbot, with a file containing the url saved in azure pipelines secret
53 # files, under pipelines > library. The secret file will need to be given permission to
54 # be used by the specific pipeline, in this case 'release.'
55 url_path = sys.argv[2]
56 with open(url_path, 'r') as file:
57 url = file.read().rstrip()
58 return url
59
60def get_headers():
61 headers = {

Callers 1

Calls 1

openFunction · 0.50

Tested by

no test coverage detected