salopensource / sal-scripts

Apache License 2.0
23 stars 31 forks source link

py3 bytes vs str issue in postfligh #69

Closed sheagcraig closed 4 years ago

sheagcraig commented 4 years ago
Apr 15 2020 11:39:03 +0100     postflight stderr: Traceback (most recent call last):
  File "/usr/local/munki/postflight.d/sal-postflight", line 102, in <module>
    main()
  File "/usr/local/munki/postflight.d/sal-postflight", line 95, in main
    ensure_launchd_loaded()
  File "/usr/local/munki/postflight.d/sal-postflight", line 88, in ensure_launchd_loaded
    if LAUNCHD not in loaded_launchds and os.path.exists(LAUNCHD_PATH):
TypeError: a bytes-like object is required, not 'str'
pmamberti commented 4 years ago

If worth as a data point, I am seeing this as well, but devices check in to our sal instance.

sheagcraig commented 4 years ago

It's totally just a py3 thing that didn't get vetted prior to the release. Should be easy.

sheagcraig commented 4 years ago

That ought to do it.