Better handling of manifest names that include Unicode characters, including handling --id from managedsoftwareupdate at the command-line.

This commit is contained in:
Greg Neagle
2016-05-11 10:21:15 -07:00
parent 5a3e130449
commit 28cb5f7c66
2 changed files with 5 additions and 3 deletions

View File

@@ -739,7 +739,8 @@ def main():
updatecheckresult = None
if not skip_munki_check:
try:
updatecheckresult = updatecheck.check(client_id=options.id)
updatecheckresult = updatecheck.check(
client_id=options.id.decode('UTF-8'))
except:
munkicommon.display_error('Unexpected error in updatecheck:')
munkicommon.log(traceback.format_exc())