@@ -34,15 +34,13 @@ type Deployer interface {
34
34
location string ,
35
35
template []byte ,
36
36
armParams map [string ]interface {},
37
- tags map [string ]string ,
38
37
) (map [string ]interface {}, error )
39
38
Update (
40
39
deploymentName string ,
41
40
resourceGroupName string ,
42
41
location string ,
43
42
template []byte ,
44
43
armParams map [string ]interface {},
45
- tags map [string ]string ,
46
44
) (map [string ]interface {}, error )
47
45
Delete (deploymentName string , resourceGroupName string ) error
48
46
}
@@ -76,7 +74,6 @@ func (d *deployer) Deploy(
76
74
location string ,
77
75
template []byte ,
78
76
armParams map [string ]interface {},
79
- tags map [string ]string ,
80
77
) (map [string ]interface {}, error ) {
81
78
82
79
// Get the deployment and its current status
@@ -105,7 +102,6 @@ func (d *deployer) Deploy(
105
102
location ,
106
103
template ,
107
104
armParams ,
108
- tags ,
109
105
); err != nil {
110
106
return nil , fmt .Errorf (
111
107
`error deploying "%s" in resource group "%s": %s` ,
@@ -165,7 +161,6 @@ func (d *deployer) Update(
165
161
location string ,
166
162
template []byte ,
167
163
armParams map [string ]interface {},
168
- tags map [string ]string ,
169
164
) (map [string ]interface {}, error ) {
170
165
// Get the deployment's current status
171
166
_ , ds , err := d .getDeploymentAndStatus (
@@ -223,7 +218,6 @@ func (d *deployer) Update(
223
218
location ,
224
219
template ,
225
220
armParams ,
226
- tags ,
227
221
)
228
222
if err != nil {
229
223
return nil , fmt .Errorf (
@@ -329,7 +323,6 @@ func (d *deployer) doDeployment(
329
323
location string ,
330
324
armTemplate []byte ,
331
325
armParams map [string ]interface {},
332
- tags map [string ]string ,
333
326
) (* resourcesSDK.DeploymentExtended , error ) {
334
327
ctx , cancel := context .WithCancel (context .Background ())
335
328
defer cancel ()
@@ -363,22 +356,11 @@ func (d *deployer) doDeployment(
363
356
return nil , fmt .Errorf ("error unmarshaling ARM template: %s" , err )
364
357
}
365
358
366
- // Deal with the possibility that tags == nil
367
- if tags == nil {
368
- tags = make (map [string ]string )
369
- }
370
-
371
- // Augment the provided tags with heritage information
372
- tags ["heritage" ] = "porter-azure-mixin"
373
-
374
359
// Deal with the possiiblity that params == nil
375
360
if armParams == nil {
376
361
armParams = make (map [string ]interface {})
377
362
}
378
363
379
- // Augment the params with tags
380
- armParams ["tags" ] = tags
381
-
382
364
// Convert a simple map[string]interface{} to the more complex
383
365
// map[string]map[string]interface{} required by the deployments client
384
366
armParamsMap := map [string ]interface {}{}
0 commit comments