Skip to content

Commit b73d9f7

Browse files
committed
fix update deployment when using blueprint_content
Signed-off-by: Xiaolei Lin <[email protected]>
1 parent a2313c0 commit b73d9f7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

vra/resource_deployment.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,11 @@ func updateDeploymentWithNewBlueprint(ctx context.Context, d *schema.ResourceDat
699699
}
700700

701701
if blueprintID != "" && blueprintContent != "" {
702-
return diag.FromErr(errors.New("only one of (blueprint_id, blueprintContent) required"))
702+
if blueprintID == "inline-blueprint" {
703+
blueprintID = ""
704+
} else {
705+
return diag.FromErr(errors.New("only one of (blueprint_id, blueprintContent) required"))
706+
}
703707
}
704708

705709
deploymentName := d.Get("name").(string)

0 commit comments

Comments
 (0)