File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments