Skip to content

Commit

Permalink
Trim whitespace from tenant ID output (#99)
Browse files Browse the repository at this point in the history
* Trim whitespace from tenant ID output

* 0.14.2
  • Loading branch information
baksetercx authored Oct 28, 2024
1 parent 3a0d553 commit dc283a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.14.1
0.14.2
2 changes: 1 addition & 1 deletion pkg/auth/azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func AuthenticateAzure(
return nil
}

if tenantID := azAccountShowCommandOutput.Output; tenantID != "" {
if tenantID := strings.TrimSpace(azAccountShowCommandOutput.Output); tenantID != "" {
azAccountShowCmdOutputString := strings.TrimSpace(string(tenantID))
if azAccountShowCmdOutputString != tenantID {
azLoginTenantCommandOutput := azLoginCommand(
Expand Down

0 comments on commit dc283a2

Please sign in to comment.