Skip to content

Commit

Permalink
validation on destination of catalog mirror should minimally check host
Browse files Browse the repository at this point in the history
  • Loading branch information
ecordell committed Jan 18, 2021
1 parent b1f6a7c commit 22cebdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cli/admin/catalog/mirror_options.go
Expand Up @@ -27,7 +27,7 @@ func (o *IndexImageMirrorerOptions) Validate() error {
return fmt.Errorf("source image required")
}

if o.Dest.Ref.RegistryURL().Hostname() == "" {
if o.Dest.Ref.RegistryURL().Hostname() == "" && o.Dest.String() == "" {
return fmt.Errorf("destination registry required")
}

Expand Down

0 comments on commit 22cebdd

Please sign in to comment.