From 3cc41b0a9832981f7ef1538ac01dcaf5eebd1a2c Mon Sep 17 00:00:00 2001 From: Serhiy Berezin Date: Fri, 2 Dec 2016 01:16:42 +0000 Subject: [PATCH] ALL top level cloud-config keys as kernel args work now if prefixed with "cc.", while prefixed just with "rancher." works as well for legacy backward compat --- config/data_funcs.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/data_funcs.go b/config/data_funcs.go index 3eb87e69..91a973a8 100644 --- a/config/data_funcs.go +++ b/config/data_funcs.go @@ -159,7 +159,9 @@ func parseCmdline(cmdLine string) map[interface{}]interface{} { outer: for _, part := range strings.Split(cmdLine, " ") { - if !strings.HasPrefix(part, "rancher.") { + if strings.HasPrefix(part, "cc.") { + part = part[3:] + } else if !strings.HasPrefix(part, "rancher.") { continue }