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

deletion without terminal is silently rejected #353

Open
displague opened this issue Mar 8, 2023 · 0 comments
Open

deletion without terminal is silently rejected #353

displague opened this issue Mar 8, 2023 · 0 comments

Comments

@displague
Copy link
Member

displague commented Mar 8, 2023

While attempting to delete VLANs in bulk, I found that the VLANs were not being deleted as expected.

for ((i=0; i<10; i++)); do metal vlan create --description delme; done
metal vlans get -o json | jq -r '.virtual_networks[] | select(.description==delme) | .id' | \
  xargs -I{} metal vlan delete -i {} \;

-f is needed to force the deletion but there is no indication of this.

Either a warning should be returned when there is no terminal to receive confirmation from or -f should be implied in batch mode. Alternatively, the documentation should call out that -f is required for use in batch mode where no terminal is present.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant