Skip to content

Commit

Permalink
fix subscription ID of clients (#3902)
Browse files Browse the repository at this point in the history
  • Loading branch information
bitoku authored Oct 14, 2024
1 parent d52d69d commit 0e0667e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func New(ctx context.Context, log *logrus.Entry, _env env.Interface, db database
return nil, err
}

armFPPrivateEndpoints, err := armnetwork.NewPrivateEndpointsClient(r.SubscriptionID, fpCredRPTenant, clientOptions)
armFPPrivateEndpoints, err := armnetwork.NewPrivateEndpointsClient(_env.SubscriptionID(), fpCredRPTenant, clientOptions)
if err != nil {
return nil, err
}
Expand All @@ -215,7 +215,7 @@ func New(ctx context.Context, log *logrus.Entry, _env env.Interface, db database
return nil, err
}

armRPPrivateLinkServices, err := armnetwork.NewPrivateLinkServicesClient(r.SubscriptionID, msiCredential, clientOptions)
armRPPrivateLinkServices, err := armnetwork.NewPrivateLinkServicesClient(_env.SubscriptionID(), msiCredential, clientOptions)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 0e0667e

Please sign in to comment.