Skip to content

Commit 299216b

Browse files
Remove user and pass vars and instead use apiKey
1 parent 37692f8 commit 299216b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

jamf2snipe

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,8 @@ logging.info("Great, we found a settings file. Let's get started by parsing all
107107
# This is the address, cname, or FQDN for your JamfPro instance.
108108
jamfpro_base = config['jamf']['url']
109109
logging.info("The configured JAMFPro base url is: {}".format(jamfpro_base))
110-
jamf_api_user = config['jamf']['username']
111-
logging.info("The configured JAMFPro username we'll be connecting with is: {}".format(jamf_api_user))
112-
jamf_api_password = config['jamf']['password']
113-
logging.debug("The configured password to access the API is: {}".format(jamf_api_password))
110+
jamf_apiKey = config['jamf']['apiKey']
111+
logging.debug("The API key you provided to access the Jamf is: {}".format(jamf_apiKey))
114112

115113
# This is the address, cname, or FQDN for your snipe-it instance.
116114
snipe_base = config['snipe-it']['url']

0 commit comments

Comments
 (0)