Just noticed that if someone is opening one of the yaml files using vim or vi, this will create a .swp file and omc will try to open it:
[vlours@supportshell-1 ~]$ oc get machineset -n openshift-machine-api
Error when trying to unmarshal file: /home/bne/vlours/03920836/0010-3920836.tar.gz/3920836/quay-io-openshift-release-dev-ocp-v4-0-art-dev-sha256-1d0190b2e1110469c9ea981f24f758dccacf621c5d46ab01ba1edaf5755b2ec1/namespaces/openshift-machine-api/machine.openshift.io/machinesets/.int-np-lmjcl-worker-0.yaml.swp
Just noticed that if someone is opening one of the
yaml
files using vim or vi, this will create a.swp
file and omc will try to open it:In addition If you create a empty file in a folder the command will simply crash:
So it will be great to ignore empty (size = 0) and swp binary files (.*.swp)
Thanks