Bug 1760583

Summary: "odo config unset" doesn't unset an environment variable but says it did
Product: OpenShift Container Platform Reporter: Yana Hontyk <yhontyk>
Component: odoAssignee: Tomáš Král <tkral>
Status: CLOSED CURRENTRELEASE QA Contact: Amit <arout>
Severity: unspecified Docs Contact: Yana Hontyk <yhontyk>
Priority: unspecified    
Version: 4.2.0CC: cdrage, moahmed, oskutka
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-02 07:56:48 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 Yana Hontyk 2019-10-10 21:15:29 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Set an env var using odo config set --env.
2. Unset it using odo config unset --env foo=bar.
3. Unset it using odo config unset --env foo (don't mention the value of foo this time).
4. Verify output of odo config view at the end of each step


Actual results:
odo says that it has successfully unset the env var but it actually hasn't.

Expected results:
Either odo config unset should complain that it can't handle the input given by user or unset the value as user would expect

Additional info:

Comment 1 Amit 2019-11-19 07:03:43 UTC
Fix via - https://github.com/openshift/odo/pull/2275