Defualting to localhost for redis.

This commit is contained in:
Samuel Clay 2015-08-07 09:06:50 -07:00
parent b1a57a9bd8
commit 70a3aa4e67

View file

@ -7,7 +7,7 @@ class NBMuninGraph(MuninGraph):
def __init__(self, *args, **kwargs):
super(NBMuninGraph, self).__init__(*args, **kwargs)
self.host = os.environ["REDIS_HOST"]
self.host = os.environ.get("REDIS_HOST", "localhost")
@property
def graph_config(self):