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

remove newline injected for cloud-init status --wait #5700

Merged
merged 4 commits into from
Sep 23, 2024

Conversation

nelsonad-ops
Copy link
Contributor

Proposed Commit Message

Fixes: GH-5863

Environment details

Cloud-init version: 24.4~3+really24.3.1-0ubuntu1
Operating System Distribution: Ubuntu
Cloud provider, platform or installer type: lxd vm

Test Steps

cloud-init status --wait

Merge type

  • Squash merge using "Proposed Commit Message"
  • Rebase and merge unique commits. Requires commit messages per-commit each referencing the pull request number (#<PR_NUM>)

remove newline on wait
Signed-off-by: Andrew Nelson <andrew.nelson@canonical.com>
Signed-off-by: Andrew Nelson <andrew.nelson@canonical.com>
@holmanb holmanb self-assigned this Sep 16, 2024
@@ -179,7 +179,7 @@ def print_status(args, details: StatusDetails):
**details.v1,
}
if args.format == "tabular":
prefix = "\n" if args.wait else ""
prefix = "" if args.wait else ""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to make this conditional, how about just:

prefix = ""

@holmanb holmanb added the CLA signed The submitter of the PR has signed the CLA label Sep 18, 2024
Copy link
Member

@holmanb holmanb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments

@nelsonad-ops
Copy link
Contributor Author

Updated status.py per comments

Copy link
Member

@holmanb holmanb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @nelsonad-ops!

@holmanb holmanb merged commit f114c63 into canonical:main Sep 23, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA signed The submitter of the PR has signed the CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants