Skip to content

Commit

Permalink
azurerm_shared_image_resource - Fix setting default architecture (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
myc2h6o authored Sep 15, 2022
1 parent d9ee27c commit e62a6f3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion internal/services/compute/shared_image_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,13 @@ func resourceSharedImageRead(d *pluginsdk.ResourceData, meta interface{}) error
d.Set("min_recommended_memory_in_gb", minRecommendedMemoryInGB)

d.Set("os_type", string(props.OsType))
d.Set("architecture", string(props.Architecture))

architecture := string((compute.ArchitectureTypesX64))
if props.Architecture != "" {
architecture = string(props.Architecture)
}
d.Set("architecture", architecture)

d.Set("specialized", props.OsState == compute.OperatingSystemStateTypesSpecialized)
d.Set("hyper_v_generation", string(props.HyperVGeneration))
d.Set("privacy_statement_uri", props.PrivacyStatementURI)
Expand Down

0 comments on commit e62a6f3

Please sign in to comment.