Skip to content

Commit

Permalink
When ScramArch is empty str/list/None, return any as required_os
Browse files Browse the repository at this point in the history
  • Loading branch information
amaltaro committed Apr 12, 2022
1 parent 97ea894 commit 6cb9fc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/WMCore/BossAir/Plugins/BasePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def scramArchtoRequiredOS(scramArch=None):
string to be matched for OS requirements for job
"""
requiredOSes = set()
if scramArch is None:
if not scramArch:
requiredOSes.add('any')
elif isinstance(scramArch, (str, bytes)):
for arch, validOSes in viewitems(ARCH_TO_OS):
Expand Down

0 comments on commit 6cb9fc7

Please sign in to comment.