fix(initialize): use REBOOT_STRATEGY in update.conf

Change from STRATEGY to REBOOT_STRATEGY and update the function names to
reflect that this is a config now.
This commit is contained in:
Brandon Philips
2014-05-06 18:11:28 -07:00
parent 7e4fa423e4
commit 9f38792d43
3 changed files with 9 additions and 9 deletions

View File

@@ -130,7 +130,7 @@ func Apply(cfg CloudConfig, env *Environment) error {
}
if s, ok := cfg.Coreos.Update["reboot-strategy"]; ok {
if err := WriteLocksmithEnvironment(s, env.Root()); err != nil {
if err := WriteLocksmithConfig(s, env.Root()); err != nil {
log.Fatalf("Failed to write locksmith config to filesystem: %v", err)
}
log.Printf("Wrote locksmith config file to filesystem")