()
| 48 | return message |
| 49 | |
| 50 | def 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 | |
| 60 | def get_headers(): |
| 61 | headers = { |
no test coverage detected