This commit is contained in:
parent
da5ad13ae3
commit
bcc641307a
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
package containers
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"fmt"
|
||||
"log"
|
||||
|
@ -273,7 +274,7 @@ func (c *Container) GetDeploySSHKeys() (string, string, error) {
|
|||
return "", "", err
|
||||
}
|
||||
|
||||
if privateKey != nil || pubKey != nil {
|
||||
if privateKey != nil && pubKey != nil && !bytes.Contains(*privateKey, []byte("No such file")) && !bytes.Contains(*pubKey, []byte("No such file")) {
|
||||
return string(*privateKey), string(*pubKey), nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue