Skip to content

Comments

Fix example#14

Open
kichik wants to merge 1 commit intoQualiNext:masterfrom
kichik:patch-2
Open

Fix example#14
kichik wants to merge 1 commit intoQualiNext:masterfrom
kichik:patch-2

Conversation

@kichik
Copy link

@kichik kichik commented Jul 4, 2019

The code tries to add a parameter to a template directly from the constructor. However this parameter ends up as a resource instead because the constructor calls template.add_resource() instead of template.add_parameter(). I end up with a template that looks like:

$schema: http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json
contentVersion: 1.0.0.0
resources:
  - metadata:
      description: The password for the VM access. User is "adminuser"
    type: secureString

I think upstream has a new add_to_template() method under Parameter and BaseAWSObject that calls the right add_X() method.

The code tries to add a parameter to a template directly from the constructor. However this parameter ends up as a resource instead because the constructor calls `template.add_resource()` instead of `template.add_parameter()`. I end up with a template that looks like:

```
$schema: http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json
contentVersion: 1.0.0.0
resources:
  - metadata:
      description: The password for the VM access. User is "adminuser"
    type: secureString
```

I think upstream has a new `add_to_template()` method under `Parameter` and `BaseAWSObject` that calls the right `add_X()` method.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant