Description of problem:
When use wrong format for `file:/` , the oc-mirror command is stuck: `oc-mirror -c config-op.yaml file:/outocp --v2`
Version-Release number of selected component (if applicable):
oc-mirror 4.16
How reproducible:
always
Steps to Reproduce:
1) Use following isc to do mirror2disk for v2: apiVersion: mirror.openshift.io/v2alpha1 kind: ImageSetConfiguration mirror: platform: architectures: - "amd64" channels: - name: stable-4.15 minVersion: 4.15.2 maxVersion: 4.15.5 `oc-mirror --config config.yaml file:/outocp --v2`
Actual results:
1) mirror command stuck
Expected results:
1) should print error
Additional information:
- is cloned by
-
OCPBUGS-35403 OCP-70878 failed with error: fail [runtime/panic.go:114]: Test Panicked: runtime error: index out of range [0] with length 0
- Closed