File tree Expand file tree Collapse file tree 2 files changed +0
-9
lines changed
Expand file tree Collapse file tree 2 files changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -96,10 +96,6 @@ class Gateway(CoreModel):
9696 instance_id : Optional [str ]
9797 wildcard_domain : Optional [str ]
9898 default : bool
99- # TODO: configuration fields are duplicated on top-level for backward compatibility with 0.18.x
100- # Remove after 0.19
101- backend : BackendType
102- region : str
10399
104100
105101class GatewayPlan (CoreModel ):
Original file line number Diff line number Diff line change @@ -551,18 +551,13 @@ def gateway_model_to_gateway(gateway_model: GatewayModel) -> Gateway:
551551 hostname = gateway_model .gateway_compute .hostname
552552 if hostname is None :
553553 hostname = ip_address
554- backend_type = gateway_model .backend .type
555- if gateway_model .backend .type == BackendType .DSTACK :
556- backend_type = BackendType .AWS
557554 configuration = get_gateway_configuration (gateway_model )
558555 configuration .default = gateway_model .project .default_gateway_id == gateway_model .id
559556 return Gateway (
560557 name = gateway_model .name ,
561558 ip_address = ip_address ,
562559 instance_id = instance_id ,
563560 hostname = hostname ,
564- backend = backend_type ,
565- region = gateway_model .region ,
566561 wildcard_domain = gateway_model .wildcard_domain ,
567562 default = gateway_model .project .default_gateway_id == gateway_model .id ,
568563 created_at = gateway_model .created_at ,
You can’t perform that action at this time.
0 commit comments