Skip to content

Commit

Permalink
fix: use better sentinel for image upload custom url (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
avirtopeanu-ionos committed Apr 12, 2024
1 parent 2ed06f0 commit 1ec9273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/cloudapi-v6/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ func RunImageUpload(c *core.CommandConfig) error {
// just a simple patch to force entry into the `for` loop below if no locations are provided
if !strings.Contains(url, "%s") &&
(locations == nil || len(locations) == 0) {
sentinel := []string{"dummy"}
sentinel := []string{""}
locations = sentinel
}

Expand Down

0 comments on commit 1ec9273

Please sign in to comment.