This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import urllib3 | |
| urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) | |
| grids = {"dev": {1: 'host-1.dev.lan', | |
| 2: 'host-2.dev.lan'}, | |
| "qa": {1: 'host-1.qa.lan', | |
| 2: 'host-2.qa.lan'}, | |
| "stg": {1: 'host-1.stg.lan', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # import required modules | |
| import requests | |
| import sys | |
| import urllib3 | |
| import os | |
| import logging | |
| # configure logging | |
| logs_format = '[%(asctime)s] %(levelname)s - %(message)s' | |
| logger = logging.getLogger() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "github.com/slack-go/slack" | |
| ) | |
| func main() { | |
| name = "" | |
| var slackToken int |