Skip to content

Commit

Permalink
fix(MQ on Cloud): options data source
Browse files Browse the repository at this point in the history
  • Loading branch information
shuaibbapputty authored and hkantare committed Jun 19, 2024
1 parent f763eee commit ef1a0d5
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,17 @@ func dataSourceIbmMqcloudQueueManagerOptionsRead(context context.Context, d *sch
return flex.DiscriminatedTerraformErrorf(err, fmt.Sprintf("Error setting latest_version: %s", err), "(Data) ibm_mqcloud_queue_manager_options", "read", "set-latest_version").GetDiag()
}

if err = d.Set("locations", configurationOptions.Locations); err != nil {
return flex.DiscriminatedTerraformErrorf(err, fmt.Sprintf("Error setting locations: %s", err), "(Data) ibm_mqcloud_queue_manager_options", "read", "set-locations").GetDiag()
}

if err = d.Set("versions", configurationOptions.Versions); err != nil {
return flex.DiscriminatedTerraformErrorf(err, fmt.Sprintf("Error setting versions: %s", err), "(Data) ibm_mqcloud_queue_manager_options", "read", "set-versions").GetDiag()
}

if err = d.Set("sizes", configurationOptions.Sizes); err != nil {
return flex.DiscriminatedTerraformErrorf(err, fmt.Sprintf("Error setting sizes: %s", err), "(Data) ibm_mqcloud_queue_manager_options", "read", "set-sizes").GetDiag()
}
return nil
}

Expand Down

0 comments on commit ef1a0d5

Please sign in to comment.