Skip to content

Commit

Permalink
Update resource_ibm_is_instance.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwal-ibm committed Oct 9, 2024
1 parent 2b42fa7 commit 125cf3f
Showing 1 changed file with 20 additions and 21 deletions.
41 changes: 20 additions & 21 deletions ibm/service/vpc/resource_ibm_is_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,24 +91,23 @@ const (
isInstanceStatusFailed = "failed"
isInstanceAvailablePolicyHostFailure = "availability_policy_host_failure"

isInstanceBootAttachmentName = "name"
isInstanceBootVolumeId = "volume_id"
isInstanceBootSize = "size"
isInstanceBootIOPS = "iops"
isInstanceBootEncryption = "encryption"
isInstanceBootProfile = "profile"
isInstanceAction = "action"
isInstanceVolumeAttachments = "volume_attachments"
isInstanceVolumeAttachmentsPrototype = "volume_prototypes"
isInstanceVolumeAttaching = "attaching"
isInstanceVolumeAttached = "attached"
isInstanceVolumeDetaching = "detaching"
isInstanceResourceGroup = "resource_group"
isInstanceLifecycleReasons = "lifecycle_reasons"
isInstanceLifecycleState = "lifecycle_state"
isInstanceLifecycleReasonsCode = "code"
isInstanceLifecycleReasonsMessage = "message"
isInstanceLifecycleReasonsMoreInfo = "more_info"
isInstanceBootAttachmentName = "name"
isInstanceBootVolumeId = "volume_id"
isInstanceBootSize = "size"
isInstanceBootIOPS = "iops"
isInstanceBootEncryption = "encryption"
isInstanceBootProfile = "profile"
isInstanceAction = "action"
isInstanceVolumeAttachments = "volume_attachments"
isInstanceVolumeAttaching = "attaching"
isInstanceVolumeAttached = "attached"
isInstanceVolumeDetaching = "detaching"
isInstanceResourceGroup = "resource_group"
isInstanceLifecycleReasons = "lifecycle_reasons"
isInstanceLifecycleState = "lifecycle_state"
isInstanceLifecycleReasonsCode = "code"
isInstanceLifecycleReasonsMessage = "message"
isInstanceLifecycleReasonsMoreInfo = "more_info"

isInstanceCatalogOffering = "catalog_offering"
isInstanceCatalogOfferingOfferingCrn = "offering_crn"
Expand Down Expand Up @@ -393,7 +392,7 @@ func ResourceIBMISInstance() *schema.Resource {
},
},
},
isInstanceVolumeAttachmentsPrototype: {
"volume_prototypes": {
Type: schema.TypeList,
Optional: true,
DiffSuppressFunc: diffsupp,
Expand Down Expand Up @@ -1311,7 +1310,7 @@ func ResourceIBMISInstance() *schema.Resource {
isInstanceVolumes: {
Type: schema.TypeList,
Optional: true,
ConflictsWith: []string{isInstanceVolumeAttachmentsPrototype},
ConflictsWith: []string{"volume_prototypes"},
Elem: &schema.Schema{Type: schema.TypeString},
Description: "List of volumes",
},
Expand Down Expand Up @@ -4881,7 +4880,7 @@ func instanceGet(d *schema.ResourceData, meta interface{}, id string) error {
// }
// }
// }
// d.Set(isInstanceVolumeAttachmentsPrototype, volList)
// d.Set("volume_prototypes", volList)
// }
tags, err := flex.GetGlobalTagsUsingCRN(meta, *instance.CRN, "", isInstanceUserTagType)
if err != nil {
Expand Down

0 comments on commit 125cf3f

Please sign in to comment.