Skip to content

Commit

Permalink
Further fixes to ensure empty list of tags doesn't break anything
Browse files Browse the repository at this point in the history
  • Loading branch information
rowleya committed Jun 22, 2015
1 parent fbe47c2 commit 010b9ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pacman/utilities/resource_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ def _get_usable_chips(self, chips, board_address,
return chips_to_use
elif board_address is not None:
return self._ethernet_area_codes[board_address]
elif ip_tags is not None or reverse_ip_tags is not None:
elif ((ip_tags is not None and len(ip_tags) > 0) or
(reverse_ip_tags is not None and len(reverse_ip_tags) > 0)):
return self._get_usable_ip_tag_chips()
return self._chips_available

Expand Down

0 comments on commit 010b9ac

Please sign in to comment.