Skip to content

Commit

Permalink
do not need nbs creds in dm admin tool (#1726)
Browse files Browse the repository at this point in the history
  • Loading branch information
BarkovBG committed Aug 5, 2024
1 parent 2270fc8 commit 743d668
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cloud/disk_manager/pkg/admin/private.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"github.com/spf13/cobra"
disk_manager "github.com/ydb-platform/nbs/cloud/disk_manager/api"
"github.com/ydb-platform/nbs/cloud/disk_manager/internal/api"
internal_auth "github.com/ydb-platform/nbs/cloud/disk_manager/internal/pkg/auth"
internal_client "github.com/ydb-platform/nbs/cloud/disk_manager/internal/pkg/client"
"github.com/ydb-platform/nbs/cloud/disk_manager/internal/pkg/clients/nbs"
client_config "github.com/ydb-platform/nbs/cloud/disk_manager/internal/pkg/configs/client/config"
Expand Down Expand Up @@ -547,11 +546,9 @@ type getCheckpointSizeCmd struct {

func (c *getCheckpointSizeCmd) run() error {
ctx := newContext(c.clientConfig)
creds := internal_auth.NewCredentials(ctx, c.serverConfig.GetAuthConfig())
nbsFactory, err := nbs.NewFactoryWithCreds(
nbsFactory, err := nbs.NewFactory(
ctx,
c.serverConfig.NbsConfig,
creds,
metrics.NewEmptyRegistry(),
metrics.NewEmptyRegistry(),
)
Expand Down

0 comments on commit 743d668

Please sign in to comment.