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:
@@ -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":
|
||||
|
Reference in New Issue
Block a user