Skip to content

Commit eef4f01

Browse files
committed
Merge pull request #318 from QuentinPerez/bootscript
Bootscript
2 parents 58314c3 + b1724ae commit eef4f01

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,6 +1183,7 @@ $ scw inspect myserver | jq '.[0].public_ip.address'
11831183

11841184
### master (unreleased)
11851185

1186+
* GetBootscriptID doesn't try to resolve when we pass an UUID
11861187
* Add location fields for VPS
11871188
* `scw ps` add commercial-type column
11881189
* Use `SCW_SECURE_EXEC` instead of `exec_exec`

pkg/api/api.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2440,6 +2440,10 @@ func (s *ScalewayAPI) GetQuotas() (*ScalewayGetQuotas, error) {
24402440
// GetBootscriptID returns exactly one bootscript matching
24412441
func (s *ScalewayAPI) GetBootscriptID(needle, arch string) (string, error) {
24422442
// Parses optional type prefix, i.e: "bootscript:name" -> "name"
2443+
if anonuuid.IsUUID(needle) == nil {
2444+
return needle, nil
2445+
}
2446+
24432447
_, needle = parseNeedle(needle)
24442448

24452449
bootscripts, err := s.ResolveBootscript(needle)

0 commit comments

Comments
 (0)