Fix create_be passing -e and the BE name as a single argument - #9
Merged
Merged
Conversation
create_be built the command with f'-e {non_active_be}', so bectl
received "-e name" as one argv element and the create failed whenever
a source BE was given. Build the command left to right instead, in the
same order as bectl's usage (create [-r] [-e nonActiveBe] newBeName),
which also removes the index juggling and the unused option variable.
Also fix grammar in the docstrings and remove the leading whitespace
on the .vscode/ and .idea/ entries in .gitignore so they actually match.
Resolves ghostbsd/issues#218
Claude-Session: https://claude.ai/code/session_01WRs35f97CmmkH3uEvB6FrX
Reviewer's guide (collapsed on small PRs)Reviewer's GuideFixes Sequence diagram for corrected create_be command constructionsequenceDiagram
participant Caller
participant create_be
participant bectl
Caller->>create_be: create_be(new_be_name, non_active_be, recursive)
create_be->>create_be: append -r when recursive
create_be->>create_be: extend -e and non_active_be
create_be->>create_be: append new_be_name
create_be->>bectl: run(cmd_list)
bectl-->>create_be: returncode 0
File-Level Changes
Assessment against linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've reviewed your changes and they look great!
Sourcery assessment
Needs a human reviewer. The change alters the arguments used to create a boot environment, so a defect could create the wrong environment or source it from the wrong one. Reverting the code would not remove an already-created environment, but the resulting state is bounded and can be inspected and deleted or recreated.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
create_be built the command with f'-e {non_active_be}', so bectl received "-e name" as one argv element and the create failed whenever a source BE was given. Build the command left to right instead, in the same order as bectl's usage (create [-r] [-e nonActiveBe] newBeName), which also removes the index juggling and the unused option variable.
Also fix grammar in the docstrings and remove the leading whitespace on the .vscode/ and .idea/ entries in .gitignore so they actually match.
Resolves ghostbsd/issues#218
Claude-Session: https://claude.ai/code/session_01WRs35f97CmmkH3uEvB6FrX
Summary by Sourcery
Fix backend creation argument handling and tidy project metadata and documentation.
Bug Fixes:
Enhancements:
Chores: