Merge "abandon_stale: Allow singular form of age parameter"

This commit is contained in:
David Pursehouse 2015-07-06 06:42:39 +00:00 committed by Gerrit Code Review
commit fd4de86f08

View File

@ -101,7 +101,7 @@ def _main():
logging.error("Gerrit URL is required")
return 1
pattern = re.compile(r"^([\d]+)(months|years|weeks)")
pattern = re.compile(r"^([\d]+)(month[s]?|year[s]?|week[s]?)")
match = pattern.match(options.age)
if not match:
logging.error("Invalid age: %s", options.age)