From 7474a85fec97f2e6eb198d38bef15de9a06d4fad Mon Sep 17 00:00:00 2001 From: Brian Waldon Date: Wed, 5 Mar 2014 14:50:20 -0800 Subject: [PATCH] refactor(config): s/ResolveCloudConfig/ApplyCloudConfig/ --- cloudinit/cloud_config.go | 2 +- coreos-cloudinit.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cloudinit/cloud_config.go b/cloudinit/cloud_config.go index 6e35b56..a61d338 100644 --- a/cloudinit/cloud_config.go +++ b/cloudinit/cloud_config.go @@ -28,7 +28,7 @@ func (cc CloudConfig) String() string { } } -func ResolveCloudConfig(cfg CloudConfig, sshKeyName string) error { +func ApplyCloudConfig(cfg CloudConfig, sshKeyName string) error { if len(cfg.SSH_Authorized_Keys) > 0 { err := AuthorizeSSHKeys(sshKeyName, cfg.SSH_Authorized_Keys) if err == nil { diff --git a/coreos-cloudinit.go b/coreos-cloudinit.go index cdf3af1..4f27762 100644 --- a/coreos-cloudinit.go +++ b/coreos-cloudinit.go @@ -73,7 +73,7 @@ func main() { switch t := parsed.(type) { case cloudinit.CloudConfig: - err = cloudinit.ResolveCloudConfig(t, sshKeyName) + err = cloudinit.ApplyCloudConfig(t, sshKeyName) case cloudinit.Script: var path string path, err = cloudinit.PersistScriptInWorkspace(t, workspace)