salsoftware/legacy-sal

preflight not passing arguments to subprocess

Closed this issue · 2 comments

Hi Graham,
I´m still using the munki-webadmin preflight script for getting new server and client manifest settings as described here:
https://code.google.com/p/munki/wiki/WPKGlikeDynamicManifestsWithoutCGI
https://code.google.com/p/munki/wiki/DynamicClientConfigurationsViaPreflightScripting

But your preflight isn´t passing arguments to scripts located at preflight.d. I changed it to:

subprocess.call([os.path.join(preflight_dir, script),
sys.argv[1]],
stdin=None)

Best,
Thomas

Hi,

Would you be able to do a pull request with your changes?

I´m new to Github, but will find out how it works... ;)