Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

balena env rm <id> fails silently without --config option #2658

Open
shawaj opened this issue Jul 23, 2023 · 0 comments
Open

balena env rm <id> fails silently without --config option #2658

shawaj opened this issue Jul 23, 2023 · 0 comments

Comments

@shawaj
Copy link

shawaj commented Jul 23, 2023

Expected Behavior

When running balena env rm <id> on a config variable, without specifying the --config flag, it should throw an error. Perhaps something like "ERROR: this is a config variable. Did you mean to use the --config flag?" or something similar.

Actual Behavior

When running balena env rm <id> on a config variable, without specifying the --config flag you get the following output:

% balena env rm 1689                     
? Are you sure you want to delete the environment variable? Yes

However when you then check the variables again for this fleet, the variable still shows, despite it looking like it was sucessful.

The issue, of course, is the missing --config flag - however this is not clear by the output and this should fail gracefully rather than silently like it does now

Steps to Reproduce the Problem

Try to delete a config variable without using the --config flag

Specifications

  • balena CLI version: 16.7.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant