Skip to content

Commit

Permalink
#228: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenwh committed Nov 13, 2024
1 parent fdf32b1 commit 90301d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dmci/api/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ def validate(self, data):
if not valid:
return valid, msg, data

# Make sure that datasets in dev (e.g., no.met.dev) and
# staging (e.g., no.met.staging) cannot be added to wrong
# environments
if (".dev" in self._namespace and self._conf.env_string != "dev") or (
".staging" in self._namespace and self._conf.env_string != "staging"
):
Expand Down

0 comments on commit 90301d7

Please sign in to comment.