Skip to content

ocdev project notexistin_subcommand should exit with error #274

@ashetty1

Description

@ashetty1

Looks like ocdev project delete doesn't delete the project as expected:

$ ocdev project create projtmp
New project created and now using project : projtmp

$ ocdev project get
The current project is: projtmp

$ ocdev project delete projtmp -v
DEBU[0000] getOcBinary - searching for oc binary        
DEBU[0000] envKubectlPluginCaller = 
                   
DEBU[0000] envOcBin = 
                                 
DEBU[0000] using oc from PATH                           
DEBU[0000] using oc from %s/usr/bin/oc                  
DEBU[0000] Trying to connect to server 127.0.0.1:8443 - %!v(MISSING) 
DEBU[0000] Server https://127.0.0.1:8443 is up          
DEBU[0000] isLoggedIn err:  <nil> 
 output: "developer\n" 
DEBU[0000] running oc command with arguments: /usr/bin/oc project
 
DEBU[0000] running oc command with arguments: /usr/bin/oc project -q
 
The current project is: projtmp
DEBU[0000] Could not get the latest release information in time. Never mind, exiting gracefully :) 

$ ocdev project get
The current project is: projtmp

$ ocdev project list
The current project is: projtmp

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.priority/MediumNice to have issue. Getting it done before priority changes would be great.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions