From 75c5f09cb4e91cb5a779e0e63ba8ab80bb7a3694 Mon Sep 17 00:00:00 2001 From: Zack T Date: Mon, 21 Mar 2022 13:40:05 -0700 Subject: [PATCH] v1.3.1 = Bug Fix Fixed: Failed to convert one of the Python calls to Python3 in previous commit --- Jamf Pro/Site Admin Tools/Move-DevicesToSite.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jamf Pro/Site Admin Tools/Move-DevicesToSite.sh b/Jamf Pro/Site Admin Tools/Move-DevicesToSite.sh index 5574673..a11280a 100644 --- a/Jamf Pro/Site Admin Tools/Move-DevicesToSite.sh +++ b/Jamf Pro/Site Admin Tools/Move-DevicesToSite.sh @@ -3,9 +3,9 @@ ################################################################################################### # Script Name: Move-DevicesToSite.sh # By: Zack Thompson / Created: 4/19/2018 -# Version: 1.3.0 / Updated: 3/17/2022 / By: ZT +# Version: 1.3.1 / Updated: 3/21/2022 / By: ZT # -# Description: This script allows Site Admins to move devices between Sites that they have perms to. +# Description: This script allows Site Admins to move devices between Sites that they have permissions too. # ################################################################################################### @@ -148,7 +148,7 @@ EndOfScript getSites() { # Create a token based on user provided credentials - authToken=$(/usr/bin/curl --silent --show-error --fail --user "${siteAdminUser}:${siteAdminPassword}" --output - --header "Accept: application/json" --request POST ${apiGetToken} | "${python_binary}" -c "import sys,json; print json.load(sys.stdin)['token']") + authToken=$( /usr/bin/curl --silent --show-error --fail --user "${siteAdminUser}:${siteAdminPassword}" --output - --header "Accept: application/json" --request POST ${apiGetToken} | "${python_binary}" -c "import sys, json; print(json.load(sys.stdin)['token'])" ) echo "Getting a list of Sites..." # GET All User Details