Code adjustments during the 1st debug phase

This commit is contained in:
Sergey Shubin svs1370
2021-03-11 00:06:55 +03:00
parent f8611fec30
commit 0179a1ef45
13 changed files with 187 additions and 67 deletions

View File

@@ -39,7 +39,7 @@ func flattenDisk(d *schema.ResourceData, disk_facts string) error {
// This function expects disk_facts string to contain a response from disks/get API
//
// NOTE: this function modifies ResourceData argument - as such it should never be called
// from resourceDiskExists(...) method
// from resourceDiskExists(...) method. Use utilityDiskCheckPresence instead.
model := DiskRecord{}
log.Debugf("flattenDisk: ready to unmarshal string %q", disk_facts)
err := json.Unmarshal([]byte(disk_facts), &model)
@@ -153,7 +153,7 @@ func dataSourceDiskSchemaMake() map[string]*schema.Schema {
*/
"sep_id": {
Type: schema.TypeString,
Type: schema.TypeInt,
Computed: true,
Description: "Storage end-point provider serving this disk.",
},