Skip to content

Commit 97e7a61

Browse files
committed
remove environment from sdw config validator
1 parent 4701183 commit 97e7a61

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

files/validate_config.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,6 @@ def confirm_config_file_exists(self):
4848
"Create from config.json.example"
4949
)
5050

51-
def confirm_environment_valid(self):
52-
"""
53-
The 'environment' config item is required to determine
54-
whether prod or dev URLs are used for installing packages.
55-
"""
56-
if "environment" not in self.config:
57-
raise ValidationError
58-
if self.config["environment"] not in ("prod", "dev", "staging"):
59-
raise ValidationError(f"Invalid environment: {self.config['environment']}")
60-
6151
def confirm_onion_config_valid(self):
6252
"""
6353
Only v3 onion services are supported.

0 commit comments

Comments
 (0)