mirror of
https://github.com/containers/podman.git
synced 2025-12-08 06:39:05 +08:00
Merge pull request #3420 from ashley-cui/remoteconf
Fix crash for when remote host IP or Username is not set in conf file…
This commit is contained in:
@@ -22,7 +22,7 @@ func ReadRemoteConfig(reader io.Reader) (*RemoteConfig, error) {
|
||||
// We need to validate each remote connection has fields filled out
|
||||
for name, conn := range remoteConfig.Connections {
|
||||
if len(conn.Destination) < 1 {
|
||||
return nil, errors.Errorf("connection %s has no destination defined", name)
|
||||
return nil, errors.Errorf("connection %q has no destination defined", name)
|
||||
}
|
||||
}
|
||||
return &remoteConfig, err
|
||||
|
||||
Reference in New Issue
Block a user