You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This could quite possibly be my lack of understanding but I am working on the libvirt provider and cannot seem to update an entry in a TypeMap during the Create cycle, updating a TypeString works fine.
When the resource is created and read back video_type correctly appears, graphics.autoport does not.
I was wondering if this is just expected behaviour and I should be using TypeList or TypeSet so I can specify the individual structure that forms the graphics block, or is this a bug ?
Note that d.Set actually returns an error value, so you may get more insight into what's going on here by checking that return value to see if the method is giving some detail about what's not working here:
Setting whole objects at once is generally the more robust approach, so I'd suggest doing that if possible, but the above error check may give you a hint about why setting just that map key isn't working.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Apr 1, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
Terraform v0.10.7-dev
This could quite possibly be my lack of understanding but I am working on the libvirt provider and cannot seem to update an entry in a TypeMap during the Create cycle, updating a TypeString works fine.
Here is part of the schema
during
I am checking various things and if video_type or graphics.autoport are not set I add defaults.
When the resource is created and read back video_type correctly appears, graphics.autoport does not.
I was wondering if this is just expected behaviour and I should be using TypeList or TypeSet so I can specify the individual structure that forms the graphics block, or is this a bug ?
Full code is in my graphicsandvnc branch file libvirt/resource_libvirt_domain.go
is failing because of this.
Thanks
The text was updated successfully, but these errors were encountered: