Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

equinix-metal: drop 'facility' support #516

Merged
merged 1 commit into from
Apr 3, 2024
Merged

Conversation

tormath1
Copy link
Contributor

@tormath1 tormath1 commented Apr 3, 2024

This is not used since a while but looks like the empty 'facility' parameter was triggering an error:

The 'facility' parameter is not supported for organization xxxxx.
For more details, see https://feedback.equinixmetal.com/changelog/bye-facilities-hello-again-metros "

CI: http://jenkins.infra.kinvolk.io:8080/job/container/job/test/21306/

@tormath1 tormath1 self-assigned this Apr 3, 2024
This is not used since a while but looks like the empty 'facility'
parameter was triggering an error:
```
The 'facility' parameter is not supported for organization xxxxx.
For more details, see https://feedback.equinixmetal.com/changelog/bye-facilities-hello-again-metros "
```

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
@tormath1 tormath1 marked this pull request as ready for review April 3, 2024 12:26
@tormath1 tormath1 requested a review from a team April 3, 2024 12:26

device, response, err = a.c.Devices.Create(&packngo.DeviceCreateRequest{
ProjectID: a.opts.Project,
Facility: []string{a.opts.Facility},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably should have been setting this to nil instead of an array with one empty string. But it's deprecated anyway, so this is fine too.

@tormath1 tormath1 merged commit 897319c into flatcar-master Apr 3, 2024
2 checks passed
@tormath1 tormath1 deleted the tormath1/em branch April 3, 2024 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants