mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Changed where newrelic_license_key gets set
This commit is contained in:
parent
12567e7f1e
commit
87275b966c
11
deploy-cluster-aws/fabfile.py
vendored
11
deploy-cluster-aws/fabfile.py
vendored
@ -5,8 +5,8 @@ BigchainDB, including its storage backend (RethinkDB).
|
||||
|
||||
from __future__ import with_statement, unicode_literals
|
||||
|
||||
import sys
|
||||
from os import getenv
|
||||
from os import environ # a mapping (like a dict)
|
||||
from sys import exit as sys_exit
|
||||
|
||||
from fabric.api import sudo, env, hosts
|
||||
from fabric.api import task, parallel
|
||||
@ -28,8 +28,6 @@ env.hosts = public_dns_names
|
||||
# http://docs.fabfile.org/en/1.10/usage/env.html#key-filename
|
||||
env.key_filename = 'pem/bigchaindb.pem'
|
||||
|
||||
newrelic_license_key = getenv('NEWRELIC_KEY', 'not_set')
|
||||
|
||||
|
||||
######################################################################
|
||||
|
||||
@ -194,8 +192,9 @@ def start_bigchaindb_load():
|
||||
@task
|
||||
@parallel
|
||||
def install_newrelic():
|
||||
if newrelic_license_key == 'not_set':
|
||||
sys.exit('The NEWRELIC_KEY environment variable is not set')
|
||||
newrelic_license_key = environ.get('NEWRELIC_KEY')
|
||||
if newrelic_license_key is None:
|
||||
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