Skip to content

Commit

Permalink
Fix bug in GC of firewall rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
marccarre committed Jan 16, 2017
1 parent e49754e commit e75c226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scheduler/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def _gc_firewall_rules(compute, project, running):
matches = _matches_any_regex(firewall['name'], FIREWALL_REGEXES)
if not matches:
continue
if matches.group('build') in running:
if int(matches.group('build')) in running:
continue
logging.info("Deleting firewall rule %s", firewall['name'])
compute.firewalls().delete(project=project, firewall=firewall['name']).execute()

0 comments on commit e75c226

Please sign in to comment.