diff options
| author | Paul Buetow <paul@buetow.org> | 2021-10-29 07:50:36 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2021-10-29 07:50:36 +0300 |
| commit | d556c13d430f291b615d538c35ebdaf9b53aa15d (patch) | |
| tree | 1b5b78814e88ac09669cd62c216c97347343c253 /internal/config/env.go | |
| parent | 3d24204754aff155de21b01e9e3d82eb460fb87f (diff) | |
Dont use relaxed SSH Auth mode anymore for integration tests
Diffstat (limited to 'internal/config/env.go')
| -rw-r--r-- | internal/config/env.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/internal/config/env.go b/internal/config/env.go index 804a10a..1ccac9c 100644 --- a/internal/config/env.go +++ b/internal/config/env.go @@ -16,12 +16,3 @@ func Hostname() (string, error) { } return os.Hostname() } - -// SSHKnownHostsFile returns the known hosts file path (useful for integration tests) -func SSHKnownHostsFile() string { - if len(os.Getenv("DTAIL_SSH_KNOWN_HOSTS_FILE")) > 0 { - return os.Getenv("DTAIL_SSH_KNOWN_HOSTS_FILE") - } else { - return os.Getenv("HOME") + "/.ssh/known_hosts" - } -} |
