From 7e484ec4475bd456117e1d9bc7c8c36b88da3c4b Mon Sep 17 00:00:00 2001 From: Prachi Damle Date: Mon, 1 Oct 2018 16:25:23 -0700 Subject: [PATCH] Converting bool fields to string to correctly detect if they are set via reflection --- tool.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tool.go b/tool.go index 3c0a76b2..baec5d0d 100644 --- a/tool.go +++ b/tool.go @@ -85,8 +85,8 @@ type RancherConfig struct { Certs []string `yaml:"certs,omitempty"` Type string `yaml:"type,omitempty"` Scale string `yaml:"scale,omitempty"` - RetainIP bool `yaml:"retain_ip,omitempty"` - StartOnCreate bool `yaml:"start_on_create,omitempty"` + RetainIP string `yaml:"retain_ip,omitempty"` + StartOnCreate string `yaml:"start_on_create,omitempty"` DrainTimeoutMs string `yaml:"drain_timeout_ms,omitempty"` ExternalIps []string `yaml:"external_ips,omitempty"` HealthCheck map[string]interface{} `yaml:"health_check,omitempty"`