Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix printer.py to handle when sharing is off #388

Merged
merged 1 commit into from
Feb 20, 2016

Conversation

clburlison
Copy link
Contributor

As promised the Printer script fixed. No longer shall the preflight script exit 1.

I got a little lazy and only tested in 10.6, 10.7, 10.9 and 10.11. Even if 10.8 and 10.10 are different the exception for KeyError should cover us.

The 'shared' key is better as it is present on 10.6-10.11 while the 'printersharing' key was only on later OS releases.

Also linted the script while it was open.

bochoven added a commit that referenced this pull request Feb 20, 2016
Fix printer.py to handle when sharing is off
@bochoven bochoven merged commit 3c8cd16 into munkireport:wip Feb 20, 2016
@clburlison clburlison deleted the printer-patch1 branch February 20, 2016 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants