1
0
mirror of https://github.com/rancher/os.git synced 2025-09-04 00:04:25 +00:00

Bugfix: cloud_init datasource "cmdline" should not expect a value

Problem: Datasource of type `cmdline` is not processed unless a value is given. Alas, cloud-init's `proc_cmdline` method does not take any arguments at all.
This commit is contained in:
Jan Broer
2015-05-14 03:38:14 +02:00
parent 5b9a9df29c
commit e82ce0ac22

View File

@@ -397,7 +397,7 @@ func getDatasources(cfg *rancherConfig.Config) []datasource.Datasource {
dss = append(dss, url.NewDatasource(parts[1]))
}
case "cmdline":
if len(parts) == 2 {
if len(parts) == 1 {
dss = append(dss, proc_cmdline.NewDatasource())
}
case "configdrive":