Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juanvallejo committed Aug 3, 2018
1 parent db08d05 commit add54e8
Show file tree
Hide file tree
Showing 2 changed files with 234 additions and 231 deletions.
4 changes: 4 additions & 0 deletions pkg/oc/cli/importimage/importimage.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ func (o *ImportImageOptions) Complete(f kcmdutil.Factory, cmd *cobra.Command, ar
return o.PrintFlags.ToPrinter()
}

return o.parseImageReference()
}

func (o *ImportImageOptions) parseImageReference() error {
targetRef, err := imageapi.ParseDockerImageReference(o.Target)
switch {
case err != nil:
Expand Down
Loading

0 comments on commit add54e8

Please sign in to comment.