Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion SimpleMDMpy/Devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ def get_device(self, device_id="all", search=None, include_awaiting_enrollment=F
array: An array of dictionary objects with device information.
"""
url = self.url
params = {'include_awaiting_enrollment': include_awaiting_enrollment}
params = {}
if include_awaiting_enrollment:
params['include_awaiting_enrollment'] = True
# if a device ID is specified, then ignore any searches
if device_id != 'all':
url = url + "/" + str(device_id)
Expand Down