mirror of
https://github.com/munki/munki.git
synced 2026-02-20 06:00:51 -06:00
More fixes for parsing startosinstall output
This commit is contained in:
@@ -371,7 +371,7 @@ class StartOSInstallRunner(object):
|
||||
display.display_status_minor(msg)
|
||||
elif msg.startswith(('Preparing ', 'Preparing: ')):
|
||||
# percent-complete messages
|
||||
percent_str = msg.split()[-1].rstrip('%')
|
||||
percent_str = msg.split()[-1].rstrip('%.')
|
||||
try:
|
||||
percent = int(float(percent_str))
|
||||
except ValueError:
|
||||
|
||||
Reference in New Issue
Block a user