Skip to content

Commit 110fe0f

Browse files
committed
Remove config.json environment check from SDWConfigValidator
1 parent 0a8238a commit 110fe0f

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

files/validate_config.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ def __init__(self, config_base_dir=None):
3838
self.confirm_onion_config_valid()
3939
self.confirm_submission_privkey_file()
4040
self.confirm_submission_privkey_fingerprint()
41-
self.confirm_environment_valid()
4241
self.validate_existing_size()
4342

4443
def confirm_config_file_exists(self):
@@ -48,16 +47,6 @@ def confirm_config_file_exists(self):
4847
"Create from config.json.example"
4948
)
5049

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-
6150
def confirm_onion_config_valid(self):
6251
"""
6352
Only v3 onion services are supported.

0 commit comments

Comments
 (0)