diff --git a/ibm/service/vpc/resource_ibm_is_share_replica_operations.go b/ibm/service/vpc/resource_ibm_is_share_replica_operations.go index 3e47ac3fbf..e3a1d58273 100644 --- a/ibm/service/vpc/resource_ibm_is_share_replica_operations.go +++ b/ibm/service/vpc/resource_ibm_is_share_replica_operations.go @@ -97,22 +97,7 @@ func resourceIbmIsShareReplicaOperationsCreate(context context.Context, d *schem share_id := d.Get("share_replica").(string) splitShare := d.Get("split_share").(bool) - getShareSourceOptions := &vpcv1.GetShareSourceOptions{ - ShareID: &share_id, - } - sourceShare, response, err := vpcClient.GetShareSourceWithContext(context, getShareSourceOptions) - if err != nil || sourceShare == nil { - if response != nil { - if response.StatusCode == 404 { - d.SetId("") - } - log.Printf("[DEBUG] GetShareWithContext failed %s\n%s", err, response) - return nil - } - log.Printf("[DEBUG] GetShareWithContext failed %s\n", err) - return diag.FromErr(fmt.Errorf("[DEBUG] GetShareWithContext failed %s\n", err)) - } if !splitShare { fallback_policy := d.Get("fallback_policy").(string) timeout := d.Get("timeout").(int) @@ -142,10 +127,6 @@ func resourceIbmIsShareReplicaOperationsCreate(context context.Context, d *schem if err != nil { return diag.FromErr(err) } - _, err = isWaitForShareReplicationJobDone(context, vpcClient, *sourceShare.ID, d, d.Timeout(schema.TimeoutCreate)) - if err != nil { - return diag.FromErr(err) - } d.SetId(share_id) return nil } diff --git a/website/docs/d/is_source_share.html.markdown b/website/docs/d/is_source_share.html.markdown index 93bb3ea9f7..6802d073b0 100644 --- a/website/docs/d/is_source_share.html.markdown +++ b/website/docs/d/is_source_share.html.markdown @@ -1,14 +1,14 @@ --- layout: "ibm" -page_title: "IBM : is_share" +page_title: "IBM : is_source_share" description: |- Get information about Share subcategory: "VPC infrastructure" --- -# ibm\_is_share +# ibm_is_source_share -Provides a read-only data source for Share. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax. +Provides a read-only data source for the source share. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax. ## Example Usage diff --git a/website/docs/r/is_share_replica_operations.html.markdown b/website/docs/r/is_share_replica_operations.html.markdown index 49b6443a40..01b0dfaf83 100644 --- a/website/docs/r/is_share_replica_operations.html.markdown +++ b/website/docs/r/is_share_replica_operations.html.markdown @@ -6,9 +6,9 @@ description: |- subcategory: "VPC infrastructure" --- -# ibm\_is_share_target +# is_share_replica_operations -Provides a resource for ShareTarget. This allows ShareTarget to be created, updated and deleted. +Provides a resource for managing the share operations failover and split. ~> **NOTE** `ibm_is_share_replica_operations` is used for either failing over to replica share or splitting the source and replica shares. @@ -67,7 +67,6 @@ The following arguments are supported: - `split_share` - (Boolean, string) If set to true the replication relationship between source share and replica will be removed. ~>**Note** - `split_share` and `fallback_policy` are mutually exclusive ## Attribute Reference