Rename api.common to humbug
Fixes #482. (imported from commit 1bd6a7fd993d8d5e225e0311c288dbce0c369a40)
This commit is contained in:
parent
4bfd784423
commit
f9f8a6e603
14 changed files with 97 additions and 80 deletions
|
@ -3,8 +3,8 @@ import sys
|
|||
import optparse
|
||||
from os import path
|
||||
|
||||
sys.path.append(path.join(path.dirname(__file__), '../..'))
|
||||
import api.common
|
||||
sys.path.append(path.join(path.dirname(__file__), '..'))
|
||||
import humbug
|
||||
|
||||
# Nagios passes the notification details as command line options.
|
||||
# In Nagios, "output" means "first line of output", and "long
|
||||
|
@ -43,7 +43,7 @@ if output:
|
|||
# Block-quote any command output.
|
||||
msg['content'] += ('\n\n' + '\n'.join('> ' + ln for ln in output.splitlines()))
|
||||
|
||||
client = api.common.HumbugAPI(
|
||||
client = humbug.HumbugAPI(
|
||||
email = 'humbug+nagios@humbughq.com',
|
||||
api_key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
|
||||
site = 'https://staging.humbughq.com')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue