chore: cleanup proxmox IsAuthError and remove stray comment
- Make IsAuthError unexported (isAuthError) since it's only used internally - Remove stray '// test comment' from docker_metadata.go
This commit is contained in:
parent
a4436c1b93
commit
4f25aa9ca1
2 changed files with 3 additions and 4 deletions
|
|
@ -154,5 +154,3 @@ func (h *DockerMetadataHandler) HandleDeleteMetadata(w http.ResponseWriter, r *h
|
|||
|
||||
w.WriteHeader(http.StatusNoContent)
|
||||
}
|
||||
|
||||
// test comment
|
||||
|
|
|
|||
|
|
@ -649,7 +649,7 @@ func (cc *ClusterClient) executeWithFailover(ctx context.Context, fn func(*Clien
|
|||
}
|
||||
|
||||
// Check if it's an auth error - don't retry on auth errors
|
||||
if IsAuthError(err) {
|
||||
if isAuthError(err) {
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
@ -1230,7 +1230,8 @@ func (cc *ClusterClient) GetDisks(ctx context.Context, node string) ([]Disk, err
|
|||
return result, err
|
||||
}
|
||||
|
||||
func IsAuthError(err error) bool {
|
||||
// isAuthError checks if an error is an authentication error
|
||||
func isAuthError(err error) bool {
|
||||
if err == nil {
|
||||
return false
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue