Skip to content

Commit

Permalink
run/run,run/image: rename Parse to ParseImageName
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Jung <a.jung@lancs.ac.uk>
  • Loading branch information
nderjung committed Dec 22, 2020
1 parent 4cf1e58 commit 26eecd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion run/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ type Image struct {
Tag string
}

func Parse(s string) (*Image, error) {
func ParseImageName(s string) (*Image, error) {
matches := ReferenceRegexp.FindStringSubmatch(s)
if matches == nil {
if s == "" {
Expand Down
2 changes: 1 addition & 1 deletion run/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func ParseRunImage(image string) (RunnerType, error) {
return EMPTY, fmt.Errorf("Image definition empty")
}

ref, err := Parse(image)
ref, err := ParseImageName(image)
if err != nil {
return UNKNOWN, err
}
Expand Down

0 comments on commit 26eecd7

Please sign in to comment.