summaryrefslogtreecommitdiff
path: root/libvirt/utils_domain_def.go
diff options
context:
space:
mode:
Diffstat (limited to 'libvirt/utils_domain_def.go')
-rw-r--r--libvirt/utils_domain_def.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/libvirt/utils_domain_def.go b/libvirt/utils_domain_def.go
index 90175de1..95c6c0d6 100644
--- a/libvirt/utils_domain_def.go
+++ b/libvirt/utils_domain_def.go
@@ -70,10 +70,7 @@ func splitKernelCmdLine(cmdLine string) ([]map[string]string, error) {
continue
}
- kv := strings.Split(argVal, "=")
- if len(kv) != 2 {
- return nil, fmt.Errorf("Can't parse kernel command line: '%s'", cmdLine)
- }
+ kv := strings.SplitN(argVal, "=", 2)
k, v := kv[0], kv[1]
// if the key is duplicate, start a new map
if _, ok := currCmdLine[k]; ok {