mirror of
https://github.com/rancher/os.git
synced 2025-09-01 23:04:41 +00:00
make cloud-config the configuration mechanism for RancherOS
This commit is contained in:
@@ -6,9 +6,9 @@ import (
|
||||
log "github.com/Sirupsen/logrus"
|
||||
)
|
||||
|
||||
type InitFunc func(*Config) error
|
||||
type InitFunc func(*CloudConfig) error
|
||||
|
||||
func RunInitFuncs(cfg *Config, initFuncs []InitFunc) error {
|
||||
func RunInitFuncs(cfg *CloudConfig, initFuncs []InitFunc) error {
|
||||
for i, initFunc := range initFuncs {
|
||||
log.Debugf("[%d/%d] Starting", i+1, len(initFuncs))
|
||||
if err := initFunc(cfg); err != nil {
|
||||
|
Reference in New Issue
Block a user