Skip to content

Commit

Permalink
fix: [PL-51501]: Fix for error 'Invalid format of YAML payloa' error …
Browse files Browse the repository at this point in the history
…when creating custom SM (#987)
  • Loading branch information
sarthak-harnessio committed May 30, 2024
1 parent 414db2b commit 36d9863
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/service/platform/connector/custom_secret_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func readConnectorCustomSM(d *schema.ResourceData, connector *nextgen.ConnectorI
d.Set("delegate_selectors", csm.DelegateSelectors)
d.Set("on_delegate", csm.OnDelegate)
d.Set("template_ref", csm.Template.TemplateRef)
d.Set("template_ref", csm.Template.VersionLabel)
d.Set("version_label", csm.Template.VersionLabel)
d.Set("timeout", csm.Timeout)

// Template inputs
Expand Down Expand Up @@ -200,7 +200,7 @@ func buildConnectorCustomSM(d *schema.ResourceData) *nextgen.ConnectorInfo {
connector.CustomSecretManager.Template.TemplateRef = attr.(string)
}

if attr, ok := d.GetOk("version"); ok {
if attr, ok := d.GetOk("version_label"); ok {
connector.CustomSecretManager.Template.VersionLabel = attr.(string)
}

Expand Down

0 comments on commit 36d9863

Please sign in to comment.