Skip to content

Commit 2b5f351

Browse files
author
Quentin Perez
committed
Force use bootscript when it's an UUID
1 parent 58314c3 commit 2b5f351

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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)