Skip to content

Commit

Permalink
docs: fix getAuthenticationMethod and completePathFromNode docs
Browse files Browse the repository at this point in the history
Both of those contained incorrect comments.

Signed-off-by: Dmitriy Matrenichev <[email protected]>
  • Loading branch information
looklose authored and DmitriyMV committed Apr 10, 2024
1 parent bfbd02a commit 9550f5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/talosctl/cmd/talos/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func addCommand(cmd *cobra.Command) {
Commands = append(Commands, cmd)
}

// completeResource represents tab complete options for `ls` and `ls *` commands.
// completePathFromNode represents tab complete options for `ls` and `ls *` commands.
func completePathFromNode(inputPath string) []string {
pathToSearch := inputPath

Expand Down
2 changes: 1 addition & 1 deletion pkg/imager/profile/internal/signer/azure/azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const (

const azureClientID = "AZURE_CLIENT_ID"

// getAuthMethod returns the an authenticationMethod to use to get an Azure Authorizer.
// getAuthenticationMethod returns an authenticationMethod to use to get an Azure Authorizer.
// If no environment variables are set, unknownAuthMethod will be used.
// If the environment variable 'AZURE_AUTH_METHOD' is set to either environment or cli, use it.
// If the environment variables 'AZURE_TENANT_ID', 'AZURE_CLIENT_ID' and 'AZURE_CLIENT_SECRET' are set, use environment.
Expand Down

0 comments on commit 9550f5f

Please sign in to comment.