-
Notifications
You must be signed in to change notification settings - Fork 883
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
Conversation
remove newline on wait
Signed-off-by: Andrew Nelson <andrew.nelson@canonical.com>
Signed-off-by: Andrew Nelson <andrew.nelson@canonical.com>
cloudinit/cmd/status.py
Outdated
@@ -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 "" |
There was a problem hiding this comment.
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 = ""
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments
Updated status.py per comments |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @nelsonad-ops!
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