-
Notifications
You must be signed in to change notification settings - Fork 50
fix: allow getting resources with number as name #571
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #571 +/- ##
==========================================
+ Coverage 67.87% 68.00% +0.12%
==========================================
Files 47 47
Lines 4912 4938 +26
==========================================
+ Hits 3334 3358 +24
- Misses 1170 1172 +2
Partials 408 408 ☔ View full report in Codecov by Sentry. |
jooola
reviewed
Dec 19, 2024
Member
|
I think the ISOs can be named by the customer, it is missing from this PR. |
jooola
approved these changes
Dec 20, 2024
jooola
pushed a commit
that referenced
this pull request
Jan 22, 2025
🤖 I have created a release *beep* *boop* --- ## [2.18.0](v2.17.1...v2.18.0) (2025-01-22) ### Features * **exp:** add `randutil.GenerateID` helper ([#580](#580)) ([9515be7](9515be7)) ### Bug Fixes * allow getting resources with number as name ([#571](#571)) ([b743a33](b743a33)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
apricote
pushed a commit
to hetznercloud/fleeting-plugin-hetzner
that referenced
this pull request
Jan 22, 2025
…8.0 (hetznercloud/fleeting-plugin-hetzner!208) This MR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/hetznercloud/hcloud-go/v2](https://github.com/hetznercloud/hcloud-go) | require | minor | `v2.17.1` -> `v2.18.0` | --- ### Release Notes <details> <summary>hetznercloud/hcloud-go (github.com/hetznercloud/hcloud-go/v2)</summary> ### [`v2.18.0`](https://github.com/hetznercloud/hcloud-go/releases/tag/v2.18.0) [Compare Source](hetznercloud/hcloud-go@v2.17.1...v2.18.0) ##### Features - **exp:** add `randutil.GenerateID` helper ([#​580](hetznercloud/hcloud-go#580)) ([9515be7](hetznercloud/hcloud-go@9515be7)) ##### Bug Fixes - allow getting resources with number as name ([#​571](hetznercloud/hcloud-go#571)) ([b743a33](hetznercloud/hcloud-go@b743a33)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever MR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this MR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box --- This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMjAuNCIsInVwZGF0ZWRJblZlciI6IjM5LjEyMC40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
If the name of a user-named resource was numeric, it was impossible to
Getit from its name, since a number would always be interpreted as an ID. This PR fixes this behavior on user-namable resources by continuing to check if a resource with the givenidOrNameexists even though theidOrNameis numeric and no resource with the given ID was found.See hetznercloud/cli#874