Skip to content

Commit

Permalink
remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyOHart committed Oct 18, 2024
1 parent 5cf3fa7 commit 558ecf2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions apps/managedidentity/managedidentity.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,17 +373,13 @@ func createAzureArcAuthRequest(ctx context.Context, id ID, resource string) (*ht

func isAzureArcEnvironment(identityEndpoint, imdsEndpoint string, platform string) bool {
if identityEndpoint != "" && imdsEndpoint != "" {
println("both not empty")
return true
}

himdsFilePath := getAzureArcFilePath(platform)
println("himdsFilePath: " + himdsFilePath)

if himdsFilePath != "" {
println("himdsFilePath not empty")
if _, err := os.Stat(himdsFilePath); err == nil {
println("himdsFilePath exists")
return true
}
}
Expand Down
3 changes: 0 additions & 3 deletions apps/managedidentity/managedidentity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,6 @@ func Test_AcquireToken_Returns_Token_Success(t *testing.T) {
{source: DefaultToIMDS, endpoint: imdsDefaultEndpoint, resource: resourceDefaultSuffix, miType: UserAssignedObjectID("objectId"), apiVersion: imdsAPIVersion},
{source: AzureArc, endpoint: azureArcEndpoint, resource: resource, miType: SystemAssigned(), apiVersion: azureArcAPIVersion},
{source: AzureArc, endpoint: azureArcEndpoint, resource: resourceDefaultSuffix, miType: SystemAssigned(), apiVersion: azureArcAPIVersion},
// {source: AzureArc, endpoint: azureArcEndpoint, resource: resource, miType: UserAssignedClientID("clientId"), apiVersion: azureArcAPIVersion},
// {source: AzureArc, endpoint: azureArcEndpoint, resource: resource, miType: UserAssignedObjectID("objectId"), apiVersion: azureArcAPIVersion},
// {source: AzureArc, endpoint: azureArcEndpoint, resource: resource, miType: UserAssignedResourceID("resourceId"), apiVersion: azureArcAPIVersion},
}
for _, testCase := range testCases {

Expand Down

0 comments on commit 558ecf2

Please sign in to comment.