Merge pull request #2735 from hashicorp/f-no_host_uuid-true

Default no_host_uuid to true instead of false
This commit is contained in:
Michael Schurter
2017-07-03 13:18:25 -07:00
committed by GitHub
8 changed files with 9 additions and 13 deletions

View File

@@ -59,7 +59,7 @@ client {
gc_disk_usage_threshold = 82
gc_inode_usage_threshold = 91
gc_max_allocs = 50
no_host_uuid = true
no_host_uuid = false
}
server {
enabled = true

View File

@@ -543,6 +543,7 @@ func DefaultConfig() *Config {
GCDiskUsageThreshold: 80,
GCInodeUsageThreshold: 70,
GCMaxAllocs: 50,
NoHostUUID: true,
},
Server: &ServerConfig{
Enabled: false,
@@ -1003,7 +1004,8 @@ func (a *ClientConfig) Merge(b *ClientConfig) *ClientConfig {
if b.GCMaxAllocs != 0 {
result.GCMaxAllocs = b.GCMaxAllocs
}
if b.NoHostUUID {
// NoHostUUID defaults to true, merge if false
if !b.NoHostUUID {
result.NoHostUUID = b.NoHostUUID
}

View File

@@ -78,7 +78,7 @@ func TestConfig_Parse(t *testing.T) {
GCDiskUsageThreshold: 82,
GCInodeUsageThreshold: 91,
GCMaxAllocs: 50,
NoHostUUID: true,
NoHostUUID: false,
},
Server: &ServerConfig{
Enabled: true,