canonical/multipass

Fix spinner for non-interactive use

Aperta

#1541 aperta il 15 mag 2020

 (9 commenti) (0 reazioni) (0 assegnatari)C++ (634 fork)batch import
help wantedlow hanging fruitmedium

Metriche repository

Star
 (6956 stelle)
Metriche merge PR
 (Merge medio 16g 2h) (50 PR mergiate in 30 g)

Descrizione

Attempting to run non-interactive scripts that run multipass. Logs look like this:

Creating VMs...

                                                                                

                                                                                
Creating test-0  / 
                                                                                

                                                                                
Configuring test-0  /- 
                                                                                

                                                                                
Starting test-0  /-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\ 
                                                                                

                                                                                
Waiting for initialization to complete  /-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\| 
                                                                                
Launched: test-0

                                                                                
Created VM test-0.

This could be resolved by disabling spinners when not running on a live terminal, or via switch.

Guida contributor