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

Fix both disk wipe and deprecated command invocations #88

Merged
merged 3 commits into from
Jun 19, 2024

Conversation

mmlb
Copy link
Member

@mmlb mmlb commented Jun 19, 2024

I did not notice that the deprecated commands I setup were missing the flags and would fail to run. My initial attempt to deprecate the old names did nothing until I set the Run attribute but then I failed to notice that the args were missing and the Run would fail. I have checked that both old and new funcs actually run this time though.

Also ran into cli flags for disk wipe. I had the missing flags at one point while testing stuff out but then just totally forgot to re-run/test when I replaced verbose with pre-existing debug. I ran a wipe with/without timeout,debug to make sure it works as expected, including a tiny timeout that causes the command to abort/error out.

mmlb added 3 commits June 19, 2024 15:28
Shallow copy also gets us the flags, without the shallow copy the Run
will error accessing non-existent flags.
Was missing --timeout and should have use --debug like the rest of the
commands instead of --verbose.
@mmlb mmlb merged commit a0389a5 into metal-toolbox:main Jun 19, 2024
2 checks passed
@mmlb mmlb deleted the fix-disk-wipe-cli branch June 19, 2024 19:56
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

Successfully merging this pull request may close these issues.

2 participants