Merge pull request #695 from dtzWill/694-fix-merge-config

- Runtime: utils.go: Fix merge logic for user and hostname.
This commit is contained in:
Guillaume J. Charmes 2013-05-23 16:00:34 -07:00
commit ecb64be6a8

View file

@ -49,10 +49,10 @@ func CompareConfig(a, b *Config) bool {
}
func MergeConfig(userConf, imageConf *Config) {
if userConf.Hostname != "" {
if userConf.Hostname == "" {
userConf.Hostname = imageConf.Hostname
}
if userConf.User != "" {
if userConf.User == "" {
userConf.User = imageConf.User
}
if userConf.Memory == 0 {