Rename class HumbugAPI to Client
(imported from commit 4270f31fc5febcd9c444d0d133a1dad3860618f0)
This commit is contained in:
parent
f9f8a6e603
commit
b9325a09fa
14 changed files with 22 additions and 22 deletions
|
@ -36,7 +36,7 @@ humbug_user = 'tabbott/extra@mit.edu'
|
|||
sys.path.append(".")
|
||||
sys.path.append(path.join(path.dirname(__file__), '..'))
|
||||
import humbug
|
||||
humbug_client = humbug.HumbugAPI(
|
||||
humbug_client = humbug.Client(
|
||||
email=humbug_user,
|
||||
api_key="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
||||
verbose=True,
|
||||
|
|
|
@ -6,12 +6,12 @@ from os import path
|
|||
|
||||
sys.path.append(path.join(path.dirname(__file__), '..'))
|
||||
import humbug
|
||||
prod_client = humbug.HumbugAPI(
|
||||
prod_client = humbug.Client(
|
||||
email="feedback@humbughq.com",
|
||||
api_key="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
||||
verbose=True,
|
||||
site="https://humbughq.com")
|
||||
staging_client = humbug.HumbugAPI(
|
||||
staging_client = humbug.Client(
|
||||
email="feedback@humbughq.com",
|
||||
api_key="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
||||
verbose=True,
|
||||
|
|
|
@ -91,7 +91,7 @@ def get_calendar_url():
|
|||
|
||||
calendar_url = get_calendar_url()
|
||||
|
||||
humbug = humbug.HumbugAPI(
|
||||
humbug = humbug.Client(
|
||||
email=options.user,
|
||||
api_key=options.api_key,
|
||||
site=options.site,
|
||||
|
|
|
@ -20,7 +20,7 @@ import sys
|
|||
|
||||
sys.path.append("/home/humbug/humbug/api")
|
||||
import humbug
|
||||
client = humbug.HumbugAPI(
|
||||
client = humbug.Client(
|
||||
email="humbug+trac@humbughq.com",
|
||||
site="https://staging.humbughq.com",
|
||||
api_key="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
|
||||
|
|
|
@ -43,7 +43,7 @@ if output:
|
|||
# Block-quote any command output.
|
||||
msg['content'] += ('\n\n' + '\n'.join('> ' + ln for ln in output.splitlines()))
|
||||
|
||||
client = humbug.HumbugAPI(
|
||||
client = humbug.Client(
|
||||
email = 'humbug+nagios@humbughq.com',
|
||||
api_key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
|
||||
site = 'https://staging.humbughq.com')
|
||||
|
|
|
@ -797,7 +797,7 @@ or specify the --api-key-file option.""" % (options.api_key_file,)))
|
|||
os.environ["HUMBUG_API_KEY"] = api_key
|
||||
|
||||
import humbug
|
||||
humbug_client = humbug.HumbugAPI(
|
||||
humbug_client = humbug.Client(
|
||||
email=options.user + "@mit.edu",
|
||||
api_key=api_key,
|
||||
verbose=True,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue