This commit is contained in:
KasimBaybikov
2022-12-26 18:08:23 +03:00
parent be86069155
commit a355247845
9 changed files with 19 additions and 48 deletions

View File

@@ -183,7 +183,7 @@ func flattenCompute(d *schema.ResourceData, compFacts string) error {
d.Set("enabled", true)
}
d.Set("cloud_init", "applied") // NOTE: for existing compute we hard-code this value as an indicator for DiffSuppress fucntion
//d.Set("cloud_init", "applied") // NOTE: for existing compute we hard-code this value as an indicator for DiffSuppress fucntion
// d.Set("status", model.Status)
// d.Set("tech_status", model.TechStatus)
d.Set("started", false)

View File

@@ -782,11 +782,11 @@ func ResourceComputeSchemaMake() map[string]*schema.Schema {
},
"cloud_init": {
Type: schema.TypeString,
Optional: true,
Default: "applied",
DiffSuppressFunc: cloudInitDiffSupperss,
Description: "Optional cloud_init parameters. Applied when creating new compute instance only, ignored in all other cases.",
Type: schema.TypeString,
Optional: true,
Description: "Optional cloud_init parameters. Applied when creating new compute instance only, ignored in all other cases.",
//Default: "applied",
//DiffSuppressFunc: cloudInitDiffSupperss,
},
"enabled": {