Skip to content

Commit

Permalink
Merge pull request #54 from iron-io/strip-docker-tag-from-code-name
Browse files Browse the repository at this point in the history
Strip docker image tag from resulting code name
  • Loading branch information
rkononov committed Nov 26, 2015
2 parents eb97dac + c8cf59c commit 68b36c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,10 @@ func (u *RegisterCmd) Args() error {
u.codes.Image = u.flags.Arg(0)

u.codes.Name = u.codes.Image
if strings.ContainsRune(u.codes.Name, ':') {
arr := strings.SplitN(u.codes.Name, ":", 2)
u.codes.Name = arr[0]
}

u.codes.MaxConcurrency = *u.maxConc
u.codes.Retries = *u.retries
Expand Down

0 comments on commit 68b36c7

Please sign in to comment.