File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
addon_service/authorized_storage_account Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,9 @@ def api_base_url(self) -> str:
235235
236236 @api_base_url .setter
237237 def api_base_url (self , value : str ):
238- self ._api_base_url = value
238+ self ._api_base_url = (
239+ "" if value == self .external_service .api_base_url else value
240+ )
239241
240242 @property
241243 def imp_cls (self ) -> type [AddonImp ]:
@@ -291,7 +293,7 @@ def validate_api_base_url(self):
291293 "api_base_url" : f"Cannot specify an api_base_url for Public-only service { service .display_name } "
292294 }
293295 )
294- if ServiceTypes .PUBLIC not in service .service_type and not self .api_base_url :
296+ if ServiceTypes .PUBLIC not in service .service_type and not self ._api_base_url :
295297 raise ValidationError (
296298 {
297299 "api_base_url" : f"Must specify an api_base_url for Hosted-only service { service .display_name } "
You can’t perform that action at this time.
0 commit comments