diff --git a/etc/sample_affinity_policy.yaml b/etc/sample_affinity_policy.yaml deleted file mode 100644 index 76874d8..0000000 --- a/etc/sample_affinity_policy.yaml +++ /dev/null @@ -1,10 +0,0 @@ -# See also: https://docs.openstack.org/senlin/latest/user/policy_types/affinity.html ---- -type: senlin.policy.affinity -version: 1.0 -properties: - servergroup: - name: gitlab-runners - policies: soft-anti-affinity - availability_zone: nova - enable_drs_extension: false diff --git a/etc/sample_profile.yaml b/etc/sample_profile.yaml deleted file mode 100644 index f200530..0000000 --- a/etc/sample_profile.yaml +++ /dev/null @@ -1,17 +0,0 @@ -# See also: https://docs.openstack.org/senlin/latest/user/profile_types/nova.html#ref-nova-profile ---- -type: os.nova.server -version: 1.2 -properties: - name: runner - flavor: 5 - image: "fedora-38" - # key_name: oskey - networks: - - network: external - security_groups: allow_ipmi_ssh - metadata: - tags: gitlab-runner - user_data: | - #cloud-config - update_packages: true diff --git a/provider.go b/provider.go index 548c3bb..f50462c 100644 --- a/provider.go +++ b/provider.go @@ -209,7 +209,10 @@ func (g *InstanceGroup) getInstances(ctx context.Context, initial bool) ([]serve func (g *InstanceGroup) createInstance(ctx context.Context, index int) (string, error) { spec := new(ExtCreateOpts) - copier.Copy(spec, &g.ServerSpec) + err := copier.Copy(spec, &g.ServerSpec) + if err != nil { + return "", err + } spec.Name = fmt.Sprintf(g.ServerSpec.Name, index) if spec.Metadata == nil {