Skip to content

Commit

Permalink
Backwards compatibility fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mvantellingen committed Apr 20, 2021
1 parent cde3aeb commit ca84529
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions amplience/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ import (

func parseID(id string) (hub_id string, resource_id string) {
values := strings.SplitN(id, ":", 2)

return values[0], values[1]
if len(values) > 1 {
return values[0], values[1]
}
return "", values[0]
}

func createID(hub_id string, resource_id string) string {
Expand Down

0 comments on commit ca84529

Please sign in to comment.