refactor(config): s/ResolveCloudConfig/ApplyCloudConfig/
This commit is contained in:
parent
95a00070c3
commit
7474a85fec
@ -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 {
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user