canonical / cloud-init

Official upstream for the cloud-init: cloud instance initialization
https://cloud-init.io/
Other
2.87k stars 854 forks source link

status prints extra empty line with --wait flag #5683

Open aciba90 opened 1 week ago

aciba90 commented 1 week ago

Bug report

cloud-init status --wait prints an extra line at the begining of stdout that it is not printed in cloud-init status.

Steps to reproduce the problem

root@vmo:~# apt policy cloud-init
cloud-init:
  Installed: 24.4~3+really24.3.1-0ubuntu1
  Candidate: 24.4~3+really24.3.1-0ubuntu1
  Version table:
 *** 24.4~3+really24.3.1-0ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu oracular/main amd64 Packages
        100 /var/lib/dpkg/status
root@vmo:~# cloud-init status
status: done
root@vmo:~# cloud-init status --wait

status: done
root@vmo:~# cloud-init status --wait --long

status: done
extended_status: done
boot_status_code: enabled-by-generator
last_update: Thu, 01 Jan 1970 00:00:11 +0000
detail: DataSourceLXD
errors: []
recoverable_errors: {}

Environment details

cloud-init logs

N/A

nelsonad-ops commented 1 week ago

Hi, I would like to work on this issue. Thanks!

aciba90 commented 6 days ago

Thanks, @nelsonad-ops, for making cloud-init better. Please go on and propose a PR. See How to contribute to cloud-init for reference.