initial bucket defaults to bucket maximum
smbaker [Thu, 1 Nov 2012 00:15:30 +0000 (17:15 -0700)]
apps/gacks/gackspolicy.py

index 853f0e9..878fa6f 100644 (file)
@@ -122,7 +122,7 @@ class GacksPolicyDirectory:
             p.maxEndDays = parser.GetOptInt(section, "MaxEndDays", -1)
             p.bucketInRate = parser.GetOptInt(section, "BucketInRate", -1)
             p.bucketMax = parser.GetOptInt(section, "BucketMax", -1)
-            p.bucketInit = parser.GetOptInt(section, "BucketInit", -1)
+            p.bucketInit = parser.GetOptInt(section, "BucketInit", p.bucketMax)
             p.cost = parser.GetOptInt(section, "cost", 1)
             p.term = term
             p.membershipFee = membershipFee