@@ -87,7 +87,7 @@ func terraformPreModifications(ctx context.Context, patchedStack []byte) ([]byte
8787 passthrough , _ := GetValueFromTemplate (container .S ("image" ))
8888 _ , err = container .Set (passthrough , "Image" )
8989 if err != nil {
90- return nil , fmt .Errorf ("Could not update Image field: %v" , err )
90+ return nil , fmt .Errorf ("could not update Image field: %v" , err )
9191 }
9292
9393 err = container .Delete ("image" )
@@ -100,7 +100,7 @@ func terraformPreModifications(ctx context.Context, patchedStack []byte) ([]byte
100100 passthrough , _ := GetValueFromTemplate (container .S ("name" ))
101101 _ , err = container .Set (passthrough , "Name" )
102102 if err != nil {
103- return nil , fmt .Errorf ("Could not update Name field: %v" , err )
103+ return nil , fmt .Errorf ("could not update Name field: %v" , err )
104104 }
105105
106106 err = container .Delete ("name" )
@@ -115,22 +115,22 @@ func terraformPreModifications(ctx context.Context, patchedStack []byte) ([]byte
115115 name , _ := env .S ("name" ).Data ().(string )
116116 err = env .Delete ("name" )
117117 if err != nil {
118- return nil , fmt .Errorf ("Could not delete \" name\" key in Environment: %v" , err )
118+ return nil , fmt .Errorf ("could not delete \" name\" key in Environment: %v" , err )
119119 }
120120 _ , err = env .Set (name , "Name" )
121121 if err != nil {
122- return nil , fmt .Errorf ("Could not assign \" Name\" key in Environment: %v" , err )
122+ return nil , fmt .Errorf ("could not assign \" Name\" key in Environment: %v" , err )
123123 }
124124 }
125125 if env .Exists ("value" ) {
126126 value , _ := env .S ("value" ).Data ().(string )
127127 err = env .Delete ("value" )
128128 if err != nil {
129- return nil , fmt .Errorf ("Could not delete \" value\" key in Environment: %v" , err )
129+ return nil , fmt .Errorf ("could not delete \" value\" key in Environment: %v" , err )
130130 }
131131 _ , err = env .Set (value , "Value" )
132132 if err != nil {
133- return nil , fmt .Errorf ("Could not assign \" Value\" key in Environment: %v" , err )
133+ return nil , fmt .Errorf ("could not assign \" Value\" key in Environment: %v" , err )
134134 }
135135 }
136136 }
@@ -139,7 +139,7 @@ func terraformPreModifications(ctx context.Context, patchedStack []byte) ([]byte
139139 parsedPassthrough , _ := gabs .ParseJSON ([]byte (passthrough ))
140140 _ , err = container .Set (parsedPassthrough , "Environment" )
141141 if err != nil {
142- return nil , fmt .Errorf ("Could not update Environment field: %v" , err )
142+ return nil , fmt .Errorf ("could not update Environment field: %v" , err )
143143 }
144144
145145 err = container .Delete ("environment" )
@@ -153,7 +153,7 @@ func terraformPreModifications(ctx context.Context, patchedStack []byte) ([]byte
153153 parsedPassthrough , _ := gabs .ParseJSON ([]byte (passthrough ))
154154 _ , err = container .Set (parsedPassthrough , "EntryPoint" )
155155 if err != nil {
156- return nil , fmt .Errorf ("Could not update EntryPoint field: %v" , err )
156+ return nil , fmt .Errorf ("could not update EntryPoint field: %v" , err )
157157 }
158158
159159 err = container .Delete ("entryPoint" )
@@ -167,7 +167,7 @@ func terraformPreModifications(ctx context.Context, patchedStack []byte) ([]byte
167167 parsedPassthrough , _ := gabs .ParseJSON ([]byte (passthrough ))
168168 _ , err = container .Set (parsedPassthrough , "Command" )
169169 if err != nil {
170- return nil , fmt .Errorf ("Could not update Command field: %v" , err )
170+ return nil , fmt .Errorf ("could not update Command field: %v" , err )
171171 }
172172
173173 err = container .Delete ("command" )
0 commit comments