From 95c88acfb48f48b561aaecf227185d17a7127e07 Mon Sep 17 00:00:00 2001 From: aiordache Date: Mon, 27 Apr 2020 19:14:32 +0200 Subject: [PATCH] Set existing vpc as default external network in the compose file Signed-off-by: aiordache Signed-off-by: Nicolas De Loof --- ecs/cmd/main/main.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/ecs/cmd/main/main.go b/ecs/cmd/main/main.go index 9e7fbb94a..99f556c7c 100644 --- a/ecs/cmd/main/main.go +++ b/ecs/cmd/main/main.go @@ -81,7 +81,6 @@ func ComposeCommand(clusteropts *clusterOptions) *cobra.Command { type upOptions struct { loadBalancerArn string - vpcID string } func (o upOptions) LoadBalancerArn() *string { @@ -90,12 +89,6 @@ func (o upOptions) LoadBalancerArn() *string { } return &o.loadBalancerArn } -func (o upOptions) GetVPC() *string { - if o.vpcID == "" { - return nil - } - return &o.vpcID -} func ConvertCommand(clusteropts *clusterOptions, projectOpts *compose.ProjectOptions) *cobra.Command { cmd := &cobra.Command{ @@ -135,7 +128,6 @@ func UpCommand(clusteropts *clusterOptions, projectOpts *compose.ProjectOptions) }), } cmd.Flags().StringVar(&opts.loadBalancerArn, "load-balancer", "", "") - cmd.Flags().StringVar(&opts.vpcID, "vpc-id", "", "") return cmd }