From aba195e46bec396f700c49a858f0630f01f498d7 Mon Sep 17 00:00:00 2001 From: Edward Hope-Morley Date: Thu, 14 Apr 2016 12:02:22 +0100 Subject: [PATCH] Allow min-part-hours to be set back to zero Charm is currently accidentally ignoring min-hours=0. This patch fixes that. Closes-Bug: 1570314 Change-Id: I1a71a881009e6ead5d00a72084ce4dea6714bcf2 --- lib/swift_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/swift_utils.py b/lib/swift_utils.py index f0bae6d..bb0357e 100644 --- a/lib/swift_utils.py +++ b/lib/swift_utils.py @@ -842,7 +842,7 @@ def update_rings(nodes=[], min_part_hours=None): balance_required = False - if min_part_hours: + if min_part_hours is not None: # NOTE: no need to stop the proxy since we are not changing the rings, # only the builder.