zone manager tests

This commit is contained in:
Sandy Walsh
2011-02-16 13:17:42 -08:00
parent 4850ae7481
commit c2217e1cdb
2 changed files with 133 additions and 1 deletions

View File

@@ -71,7 +71,7 @@ class ZoneState(object):
logging.warning(_("%s error talking to zone %s") % (exception,
zone.api_url, FLAGS.zone_failures_to_offline))
self.attempt += 1
self.attempt += 1
if self.attempt >= FLAGS.zone_failures_to_offline:
self.is_active = False
logging.error(_("No answer from zone %s after %d "