Skip to content

Commit

Permalink
Adding 'warning' environment variable use
Browse files Browse the repository at this point in the history
  • Loading branch information
iborodikhin committed Sep 10, 2012
1 parent b3beac1 commit 61de47e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/sphinx/sphindex_
Expand Up @@ -40,9 +40,12 @@ indexName = progName[progName.find("_")+1:]
if len(sys.argv) == 2 and sys.argv[1] == "autoconf":
print "yes"
elif len(sys.argv) == 2 and sys.argv[1] == "config":
warning = "0:"
critical = "0:"
if "warning" in os.environ and os.environ["warning"] != None:
warning = os.environ["warning"]
if "critical" in os.environ and os.environ["critical"] != None:
warning = os.environ["critical"]
critical = os.environ["critical"]

print "graph_title Sphinx index %s stats" % indexName
print "graph_vlabel docs count"
Expand Down

0 comments on commit 61de47e

Please sign in to comment.