You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return"", fmt.Errorf("cloudstack API error: %w", err)
93
93
}
94
94
ifresp!=nil&&len(resp.SSHKeyPairs) >0 {
95
+
ifkey.Metadata.Project!="" {
96
+
return"", fmt.Errorf("sshkey %s already exists in project %s (fingerprint=%s); updates are not supported", key.Metadata.Name, key.Metadata.Project, resp.SSHKeyPairs[0].Fingerprint)
97
+
}
95
98
return"", fmt.Errorf("sshkey %s already exists in CloudStack (fingerprint=%s); updates are not supported", key.Metadata.Name, resp.SSHKeyPairs[0].Fingerprint)
return"", fmt.Errorf("virtualmachine %s already exists in CloudStack (id=%s); updates are not supported", vm.Metadata.Name, listResp.VirtualMachines[0].Id)
148
+
project:=vm.Spec.Project
149
+
ifproject=="" {
150
+
project=vm.Metadata.Project
112
151
}
113
152
114
153
// Resolve potential name references to IDs for template, service offering, and networks
0 commit comments