Better RabbitMQ passwords

-fixed
This commit is contained in:
Martin Konecny 2013-05-08 15:25:30 -04:00
parent 357565bdcd
commit 56b9d0580f
4 changed files with 75 additions and 36 deletions

View file

@ -81,6 +81,10 @@ try:
# load config file
try:
config = ConfigObj(PATH_INI_FILE)
config['rabbitmq_user'] = os.environ['RABBITMQ_USER']
config['rabbitmq_password'] = os.environ['RABBITMQ_PASSWORD']
config['rabbitmq_vhost'] = os.environ['RABBITMQ_VHOST']
config.write()
except Exception, e:
print 'Error loading config file: ', e
sys.exit(1)