grahampugh / jamf-upload

Scripts for uploading packages to Jamf Cloud
Apache License 2.0
150 stars 39 forks source link

Test mode for JamfPackageCleaner? #101

Closed everetteallen closed 1 year ago

everetteallen commented 1 year ago

As a feature request, It would be very nice to have a way to do a run with the JamfPackageCleaner post processor that will just print what would happen instead of actually doing the delete. I am tip toeing into a very large clean up with messy naming and itwould be nice to see just the report first of what would happen.

cr3ation commented 1 year ago

I have created this pull request that might suite your need.

Please have a look at the pull request. Feedback is appreciated.

You need to run the JamfPackageCleaner processor with --key dry_run=True. You might also want to raise the limit of the maximum_allowed_packages_to_delete key during the dry run.

grahampugh commented 1 year ago

This is merged with #102 I'll update autopkg/grahampugh-recipes shortly