Bug 1259056

Summary: oc edit on windows doesn't work when trying to save
Product: OpenShift Container Platform Reporter: Erik M Jacobs <ejacobs>
Component: ocAssignee: Fabiano Franz <ffranz>
Status: CLOSED CURRENTRELEASE QA Contact: Yanping Zhang <yanpzhan>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0.0CC: aos-bugs, dmcphers, jokerman, mmccomas, xxia
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-23 14:24:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Erik M Jacobs 2015-09-01 20:54:28 UTC
With oc 3.0.1.0 on Windows 7, when you do "oc edit" it brings up Notepad, this is good.

1) the YAML and the JSON are basically all on one line. There's no multiple lines and no indentation

2) When you try to save the file after editing you get an error about the file already being open by something else.

Comment 3 Xingxing Xia 2015-10-26 07:30:49 UTC
I verified this issue against windows. Versions are:
oc v3.0.2.903-29-g49953d6
kubernetes v1.2.0-alpha.1-1107-g4c8e6f4

The bug is fixed. oc edit can display and save the file well, like linux.
So I move the bug to VERIFIED.

Comment 4 Brenton Leanhardt 2015-11-23 14:24:40 UTC
This fix is available in OpenShift Enterprise 3.1.