Description of problem: taken from upstream issue Since #893, the command oc registry login --kubeconfig=aaa --to=bbb fails if the file bbb is empty: +(utils.sh:530): write_pull_secret(): oc registry login --kubeconfig=/tmp/kubeconfig--0dZLmzoYmT --to=/tmp/pullsecret--Sm82grIvD0 info: Using registry public hostname registry.ci.openshift.org error: 1 error occurred: * reading JSON file "/tmp/pullsecret--Sm82grIvD0": unmarshaling JSON at "/tmp/pullsecret--Sm82grIvD0": unexpected end of JSON input Also, argument "-" doesnt't work for --registry-config / --to options How reproducible: 100 Expected results: 1. the file bbb should have valid credentials 2. It should be possible to write to stdout