aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorAshley Cui <ashleycui16@gmail.com>2019-06-24 16:49:16 -0400
committerAshley Cui <ashleycui16@gmail.com>2019-06-25 16:10:42 -0400
commitbf5686739c5aebe64d8fdac8327cf71105694542 (patch)
treeebd113b38f976b41a7d79923ec7c9d1fd4fe26b7 /cmd
parent21978c99088c04bcc847eb12f829876708c0b9e2 (diff)
downloadpodman-bf5686739c5aebe64d8fdac8327cf71105694542.tar.gz
podman-bf5686739c5aebe64d8fdac8327cf71105694542.tar.bz2
podman-bf5686739c5aebe64d8fdac8327cf71105694542.zip
Fix crash for when remote host IP or Username is not set in conf file & conf file exists.
When Host IP is not set in podman-remote.conf, error is printed out. When Username is not set in podman-remote.conf, default username is used. Signed-off-by: Ashley Cui <ashleycui16@gmail.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/remoteclientconfig/configfile.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/remoteclientconfig/configfile.go b/cmd/podman/remoteclientconfig/configfile.go
index aa3e82a31..06e82b186 100644
--- a/cmd/podman/remoteclientconfig/configfile.go
+++ b/cmd/podman/remoteclientconfig/configfile.go
@@ -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