Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
distgit.py: tweak canonical_builders logic for parser
Browse files Browse the repository at this point in the history
  • Loading branch information
sosiouxme committed Apr 18, 2023
1 parent ef52319 commit 0ec0a0f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doozerlib/distgit.py
Expand Up @@ -1658,9 +1658,10 @@ def _should_match_upstream(self) -> bool:
# A GITLAB token env var was not provided: display a warning and fallback to default
self.logger.error(f'Fallback to default ART config: {e}')
return False
elif self.runtime.group_config.canonical_builders_from_upstream == 'on':
elif self.runtime.group_config.canonical_builders_from_upstream in ['on', True]:
# yaml parser converts bare 'on' to True, same for 'off' and False
return True
elif self.runtime.group_config.canonical_builders_from_upstream == 'off':
elif self.runtime.group_config.canonical_builders_from_upstream in ['off', False]:
return False
else:
# Invalid value
Expand Down

0 comments on commit 0ec0a0f

Please sign in to comment.