Skip to content

Commit

Permalink
Add correct handling of bytes return value from jamfHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
haircut committed Apr 2, 2022
1 parent f1be393 commit 32a1308
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions better-jamf-policy-deferral.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ def display_prompt():
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
out, err = proc.communicate()
out = out.decode("UTF-8")
# Check that the return value does not represent an 'error value'
if not out in error_values:
# Special case for 'Start Now' which returns '1'
Expand Down

0 comments on commit 32a1308

Please sign in to comment.