]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
Excluded scopes for api key test
authorsg1888 <ssg1888@nyu.edu>
Tue, 11 Jul 2023 23:41:24 +0000 (23:41 +0000)
committersg1888 <ssg1888@nyu.edu>
Tue, 11 Jul 2023 23:41:24 +0000 (23:41 +0000)
deploy/panos.sh

index 880e4cecf19fb5af96d7816b3452f15740f190f4..2bb9f08fd03f3eae431d2f748d357f3f050b76d9 100644 (file)
@@ -56,7 +56,9 @@ deployer() {
   if [ "$type" = 'keytest' ]; then
     _debug "**** Testing saved API Key ****"
     _H1="Content-Type: application/x-www-form-urlencoded"
-    content="type=commit&key=$_panos_key&action=partial&cmd=<commit><partial><admin><member>acmekeytest</member></admin></partial></commit>"
+    #Exclude all scopes for the empty commit
+    _exclude_scope="<policy-and-objects>exclude</policy-and-objects><device-and-network>exclude</device-and-network><shared-object>exclude</shared-object>"
+    content="type=commit&key=$_panos_key&cmd=<commit><partial>$_exclude_scope<admin><member>acmekeytest</member></admin></partial></commit>"
   fi
 
   # Generate API Key