Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pynorms.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
- name: Run pycodestyle
run: |
cd $GITHUB_WORKSPACE/global-workflow
pycodestyle -v --config ./.pycodestyle .
pycodestyle -v --config ./.pycodestyle --exclude='.git,.github' ./
4 changes: 2 additions & 2 deletions workflow/hosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(self, host=None):
def detect(cls):

machine = 'NOTFOUND'
container = os.getenv('SINGULARITY_NAME')
container = os.getenv('SINGULARITY_NAME', None)

if os.path.exists('/scratch1/NCEPDEV'):
machine = 'HERA'
Expand All @@ -44,7 +44,7 @@ def detect(cls):
machine = 'WCOSS2'
elif os.path.exists('/data/prod'):
machine = 'S4'
elif container != None:
elif container is not None:
machine = 'CONTAINER'

if machine not in Host.SUPPORTED_HOSTS:
Expand Down