Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make dryrun more useful for debugging #126

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eviscares
Copy link

This changes the --dryrun flag so that it runs all code, but doesn't update anything in jamf or snipeit. It also introduces a --connection_test flag, which takes over the functionality of the old dryrun flag.

The main idea behind this is, that for debugging and development purposes it might be useful to run almost all code, but stop short of updating the environment.

This changes the `--dryrun` flag so that it runs all code, but doesn't update anything in jamf or snipeit.
It also introduces a `--connection_test` flag, which takes over the functionality of the old dryrun flag.

The main idea behind this is, that for debugging and development purposes it might be useful to run almost all code,
but stop short of updating the environment.
@@ -60,7 +60,8 @@ import datetime
runtimeargs = argparse.ArgumentParser()
runtimeargs.add_argument("-v", "--verbose", help="Sets the logging level to INFO and gives you a better idea of what the script is doing.", action="store_true")
runtimeargs.add_argument("--auto_incrementing", help="You can use this if you have auto-incrementing enabled in your snipe instance to utilize that instead of adding the Jamf ID for the asset tag.", action="store_true")
runtimeargs.add_argument("--dryrun", help="This checks your config and tries to contact both the JAMFPro and Snipe-it instances, but exits before updating or syncing any assets.", action="store_true")
runtimeargs.add_argument("--dryrun", help="This checks your config and tries to contact both the JAMFPro and Snipe-it instances, and will generate the assets for debugging, but not update or sync anything but exits before updating or syncing any assets.", action="store_true")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but not update or sync anything but exits before updating or syncing any assets.

sound repetitive. maybe end before the second "but"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants