Skip to content

Commit

Permalink
Checkin assets with no assigned user
Browse files Browse the repository at this point in the history
Resolves: grokability#68
  • Loading branch information
elyscape committed Dec 23, 2021
1 parent 65bce2c commit 349627d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jamf2snipe
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,9 @@ def checkin_snipe_asset(asset_id):
# Function that checks out an asset in snipe
def checkout_snipe_asset(user, asset_id, checked_out_user=None):
logging.debug('Asset {} is being checked out to {}'.format(user, asset_id))
if user == '':
logging.info("Checking in {}".format(asset_id))
return checkin_snipe_asset(asset_id)
user_id = get_snipe_user_id(user)
if user_id == 'NotFound':
logging.info("User {} not found".format(user))
Expand Down

0 comments on commit 349627d

Please sign in to comment.