mirror of
https://github.com/munki/munki.git
synced 2026-02-15 11:46:24 -06:00
Unicode tweaks for profiles.py errors and warnings
This commit is contained in:
@@ -209,14 +209,14 @@ def install_profile(profile_path, profile_identifier):
|
||||
stdout = proc.communicate()[0]
|
||||
if proc.returncode != 0:
|
||||
display.display_error(
|
||||
'Profile %s installation failed: %s'
|
||||
% (os.path.basename(profile_path), stdout))
|
||||
u'Profile %s installation failed: %s'
|
||||
% (os.path.basename(profile_path), stdout.decode('UTF-8')))
|
||||
return False
|
||||
if profile_identifier:
|
||||
record_profile_receipt(profile_path, profile_identifier)
|
||||
else:
|
||||
display.display_warning(
|
||||
'No identifier for profile %s; cannot record an installation '
|
||||
u'No identifier for profile %s; cannot record an installation '
|
||||
'receipt.' % os.path.basename(profile_path))
|
||||
return True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user