Skip to content

Commit

Permalink
Fix format() for Python 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Choo committed Sep 14, 2017
1 parent 442cd45 commit e05adc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check_mongodb.py
Expand Up @@ -449,7 +449,7 @@ def check_rep_lag(con, host, port, warning, critical, percent, perf_data, max_la
for member in rs_status["members"]:
if member["stateStr"] == "PRIMARY":
primary_node = member
if member.get('name') == "{}:{}".format(host, port):
if member.get('name') == "{0}:{1}".format(host, port):
host_node = member

# Check if we're in the middle of an election and don't have a primary
Expand Down

0 comments on commit e05adc8

Please sign in to comment.