Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Update munkireport_prefs() to new domain #11

Closed
clburlison opened this issue Feb 19, 2016 · 0 comments
Closed

Update munkireport_prefs() to new domain #11

clburlison opened this issue Feb 19, 2016 · 0 comments
Labels
Milestone

Comments

@clburlison
Copy link
Owner

Rename the key to: google_address_lookup
Using AddressLookup. The differentiation between a Google and Apple lookup + reverse lookup will be handled in two additional keys.

This rename is to plan for the future. We hopefully will have full support for Apple & Google lookups and reverse lookups.

def munkireport_prefs():
"""Read MunkiReport preferences file to term if we should lookup the
client computers estimated address using Google's Reverse Geocode API."""
munki_report = "/Library/Preferences/MunkiReport.plist"
prefs = CFPreferencesCopyAppValue('ReportPrefs', munki_report)
if prefs:
if prefs.get('location_address_lookup'):
logging.info("address lookup enabled")
return True
else:
logging.info("address lookup disabled")
return False
else:
return True

@clburlison clburlison added the bug label Feb 19, 2016
@clburlison clburlison added this to the 0.0.2 milestone Feb 19, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant