mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Use import sys rather than from sys etc.
This commit is contained in:
parent
87275b966c
commit
046f39f715
4
deploy-cluster-aws/fabfile.py
vendored
4
deploy-cluster-aws/fabfile.py
vendored
@ -6,7 +6,7 @@ BigchainDB, including its storage backend (RethinkDB).
|
||||
from __future__ import with_statement, unicode_literals
|
||||
|
||||
from os import environ # a mapping (like a dict)
|
||||
from sys import exit as sys_exit
|
||||
import sys
|
||||
|
||||
from fabric.api import sudo, env, hosts
|
||||
from fabric.api import task, parallel
|
||||
@ -194,7 +194,7 @@ def start_bigchaindb_load():
|
||||
def install_newrelic():
|
||||
newrelic_license_key = environ.get('NEWRELIC_KEY')
|
||||
if newrelic_license_key is None:
|
||||
sys_exit('The NEWRELIC_KEY environment variable is not set')
|
||||
sys.exit('The NEWRELIC_KEY environment variable is not set')
|
||||
else:
|
||||
# Andreas had this "with settings(..." line, but I'm not sure why:
|
||||
# with settings(warn_only=True):
|
||||
|
Loading…
x
Reference in New Issue
Block a user