xetys/hetzner-kube

View on GitHub
pkg/clustermanager/ssh_communicator.go

Summary

Maintainability
A
35 mins
Test Coverage

Method SSHCommunicator.CapturePassphrase has 5 return statements (exceeds 4 allowed).
Open

func (sshComm *SSHCommunicator) CapturePassphrase(sshKeyName string) error {
    index, privateKey := sshComm.findPrivateKeyByName(sshKeyName)
    if index < 0 {
        return fmt.Errorf("could not find SSH key '%s'", sshKeyName)
    }
Severity: Major
Found in pkg/clustermanager/ssh_communicator.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status