Skip to content

Commit 1d844d2

Browse files
committed
fixed linting issues for odb network.
1 parent 28e4e96 commit 1d844d2

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

internal/service/odb/network.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -520,17 +520,14 @@ func waitNetworkCreated(ctx context.Context, conn *odb.Client, id string, timeou
520520
}
521521

522522
func waitForManagedService(ctx context.Context, targetStatus odbtypes.Access, conn *odb.Client, id string, timeout time.Duration, managedResourceStatus func(managedService *odbtypes.ManagedServices) odbtypes.ManagedResourceStatus) (*odbtypes.OdbNetwork, error) {
523-
524523
switch targetStatus {
525-
526524
case odbtypes.AccessEnabled:
527525
stateConf := &retry.StateChangeConf{
528526
Pending: enum.Slice(odbtypes.ManagedResourceStatusEnabling),
529527
Target: enum.Slice(odbtypes.ManagedResourceStatusEnabled),
530528
Refresh: statusManagedService(ctx, conn, id, managedResourceStatus),
531529
Timeout: timeout,
532530
}
533-
534531
outputRaw, err := stateConf.WaitForStateContext(ctx)
535532
if out, ok := outputRaw.(*odbtypes.OdbNetwork); ok {
536533
return out, err
@@ -543,13 +540,11 @@ func waitForManagedService(ctx context.Context, targetStatus odbtypes.Access, co
543540
Refresh: statusManagedService(ctx, conn, id, managedResourceStatus),
544541
Timeout: timeout,
545542
}
546-
547543
outputRaw, err := stateConf.WaitForStateContext(ctx)
548544
if out, ok := outputRaw.(*odbtypes.OdbNetwork); ok {
549545
return out, err
550546
}
551547
return nil, err
552-
553548
default:
554549
return nil, errors.New("odb network invalid manged service status")
555550
}

website/docs/d/odb_network.html.markdown

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ description: |-
1010

1111
Terraform data source for to retrieve network resource in AWS for Oracle Database@AWS.
1212

13-
1413
## Example Usage
1514

1615
### Basic Usage
@@ -32,7 +31,6 @@ The following arguments are optional:
3231

3332
* `region` - (Optional) Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the [provider configuration](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#aws-configuration-reference).
3433

35-
3634
## Attribute Reference
3735

3836
This resource exports the following attributes in addition to the arguments above:

website/docs/r/odb_network.html.markdown

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ The following arguments are optional:
6060
* `tags` - (Optional) A map of tags to assign to the exadata infrastructure. If configured with a provider [`default_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level.
6161
* `region` - (Optional) Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the [provider configuration](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#aws-configuration-reference).
6262

63-
6463
## Attribute Reference
6564

6665
This resource exports the following attributes in addition to the arguments above:

0 commit comments

Comments
 (0)