Skip to content

Commit

Permalink
fix(cvm): [121509779] tencentcloud_images update code (#3052)
Browse files Browse the repository at this point in the history
* add

* add
  • Loading branch information
SevenEarth authored Jan 3, 2025
1 parent 488964d commit 60bcc45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changelog/3052.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/tencentcloud_images: update code
```
4 changes: 2 additions & 2 deletions tencentcloud/services/cvm/data_source_tc_images.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ func dataSourceTencentCloudImagesRead(d *schema.ResourceData, meta interface{})

if v, ok := d.GetOk("image_type"); ok {
for _, vv := range v.([]interface{}) {
if vv.(string) != "" {
imageType = append(imageType, vv.(string))
if vv, ok := vv.(string); ok && vv != "" {
imageType = append(imageType, vv)
}
}
if len(imageType) > 0 {
Expand Down

0 comments on commit 60bcc45

Please sign in to comment.