Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
SevenEarth committed Dec 16, 2024
1 parent 4d0caa5 commit 4d6053d
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions tencentcloud/services/cvm/resource_tc_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"crypto/sha256"
"encoding/base64"
"encoding/hex"
"encoding/json"
"fmt"
"log"
"sort"
Expand Down Expand Up @@ -1243,17 +1242,6 @@ func resourceTencentCloudInstanceRead(d *schema.ResourceData, meta interface{})
}
}

a, _ := json.Marshal(instance.DataDisks)
b, _ := json.Marshal(dDiskHash)
fmt.Println(1111111111111)
fmt.Println(1111111111111)
fmt.Printf("%+v\n", string(a))
fmt.Println(1111111111111)
fmt.Println(1111111111111)
fmt.Printf("%+v\n", string(b))
fmt.Println(1111111111111)
fmt.Println(1111111111111)

// has set disk name first
for v := range sourceDataDisks {
for i := range dDiskHash {
Expand Down Expand Up @@ -1294,15 +1282,6 @@ func resourceTencentCloudInstanceRead(d *schema.ResourceData, meta interface{})
}
}

c, _ := json.Marshal(sourceDataDisks)
c1, _ := json.Marshal(dDiskHash)
fmt.Println(2222222222222)
fmt.Println(2222222222222)
fmt.Printf("%+v\n", string(c))
fmt.Printf("%+v\n", string(c1))
fmt.Println(2222222222222)
fmt.Println(2222222222222)

// no set disk name last
for v := range sourceDataDisks {
for i := range dDiskHash {
Expand Down Expand Up @@ -1339,15 +1318,6 @@ func resourceTencentCloudInstanceRead(d *schema.ResourceData, meta interface{})
}
}

e, _ := json.Marshal(sourceDataDisks)
e1, _ := json.Marshal(dDiskHash)
fmt.Println(3333333333333)
fmt.Println(3333333333333)
fmt.Printf("%+v\n", string(e))
fmt.Printf("%+v\n", string(e1))
fmt.Println(3333333333333)
fmt.Println(3333333333333)

keys := make([]int, 0, len(tmpDataDiskMap))
for k := range tmpDataDiskMap {
keys = append(keys, k)
Expand Down

0 comments on commit 4d6053d

Please sign in to comment.