File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -790,7 +790,11 @@ for jamf_type in jamf_types:
790790 try :
791791 jamf_asset_tag = jamf ['{}' .format (tag_split [0 ])]['{}' .format (tag_split [1 ])]
792792 except :
793- raise SystemError ('No such attribute {} in the jamf payload. Please check your settings.conf file' .format (tag_split ))
793+ if jamf_type == 'mobile_devices' :
794+ jamf_asset_tag = 'jamfid-m-{}' .format (jamf ['general' ]['id' ])
795+ elif jamf_type == 'computers' :
796+ jamf_asset_tag = 'jamfid-{}' .format (jamf ['general' ]['id' ])
797+ #raise SystemError('No such attribute {} in the jamf payload. Please check your settings.conf file'.format(tag_split))
794798 if jamf_asset_tag == None or jamf_asset_tag == '' :
795799 logging .debug ('No custom configuration found in settings.conf for asset tag name upon asset creation.' )
796800 if jamf_type == 'mobile_devices' :
You can’t perform that action at this time.
0 commit comments