-
Notifications
You must be signed in to change notification settings - Fork 668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
instance: fix round-trip serialization #159
Conversation
b86fcac
to
054d51f
Compare
include notes for deprecated attributes and fixes for acceptance tests
054d51f
to
bde9aa2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setting up an instance with a plan then running apply again without any change causes the instance to be destroyed and recreated--when it diffs it thinks the subnet is different for some reason even though it's exactly the same.
@codycushing what config are you using? I'm not seeing that with the config in the acc test: resource "baremetal_core_instance" "t" {
availability_domain = "${data.baremetal_identity_availability_domains.ADs.availability_domains.0.name}"
compartment_id = "${var.compartment_id}"
image = "` + FastestImageID + `"
shape = "` + SmallestShapeName + `"
subnet_id = "${baremetal_core_subnet.s.id}"
} |
It's with a plan using the nested vnic object:
|
@codycushing I see what's happening now! essentially, after the instance is created, the impl is wanting to set Talking with @grubernaut, it looks like it's not really feasible to support the old While we're at it, I'd really like to rename the |
I'm going to create a variant of this PR that is backward incompatible, but has state migration so no data (or resources) are broken |
builds on #151, attempting to fix #113