Skip to content

Commit

Permalink
fix: drs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
artaasadi committed Nov 9, 2024
1 parent 6838b43 commit 55b3d32
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions provider/describer/drs.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func DRSSourceServer(ctx context.Context, cfg aws.Config, stream *StreamSender)
describeCtx := GetDescribeContext(ctx)
client := drs.NewFromConfig(cfg)
paginator := drs.NewDescribeSourceServersPaginator(client, &drs.DescribeSourceServersInput{
MaxResults: 100,
MaxResults: aws.Int32(100),
})

var values []Resource
Expand Down Expand Up @@ -61,7 +61,7 @@ func DRSRecoveryInstance(ctx context.Context, cfg aws.Config, stream *StreamSend
describeCtx := GetDescribeContext(ctx)
client := drs.NewFromConfig(cfg)
paginator := drs.NewDescribeRecoveryInstancesPaginator(client, &drs.DescribeRecoveryInstancesInput{
MaxResults: 100,
MaxResults: aws.Int32(100),
})

var values []Resource
Expand Down Expand Up @@ -102,7 +102,7 @@ func DRSJob(ctx context.Context, cfg aws.Config, stream *StreamSender) ([]Resour
describeCtx := GetDescribeContext(ctx)
client := drs.NewFromConfig(cfg)
paginator := drs.NewDescribeJobsPaginator(client, &drs.DescribeJobsInput{
MaxResults: 100,
MaxResults: aws.Int32(100),
})

var values []Resource
Expand Down Expand Up @@ -143,7 +143,7 @@ func DRSRecoverySnapshot(ctx context.Context, cfg aws.Config, stream *StreamSend
describeCtx := GetDescribeContext(ctx)
client := drs.NewFromConfig(cfg)
paginator := drs.NewDescribeSourceServersPaginator(client, &drs.DescribeSourceServersInput{
MaxResults: 100,
MaxResults: aws.Int32(100),
})

var values []Resource
Expand All @@ -160,7 +160,7 @@ func DRSRecoverySnapshot(ctx context.Context, cfg aws.Config, stream *StreamSend

for _, sourceServer := range page.Items {
recoverySnapshotPaginator := drs.NewDescribeRecoverySnapshotsPaginator(client, &drs.DescribeRecoverySnapshotsInput{
MaxResults: 100,
MaxResults: aws.Int32(100),
SourceServerID: sourceServer.SourceServerID,
})
recoverySnapshotPageNo := 0
Expand Down

0 comments on commit 55b3d32

Please sign in to comment.