Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

FEU not sticking #16

Open
mikevmeyer opened this issue May 10, 2016 · 2 comments
Open

FEU not sticking #16

mikevmeyer opened this issue May 10, 2016 · 2 comments

Comments

@mikevmeyer
Copy link

Love jss_helper... such a great tool!

I've noticed that when I promote a package, it strips any FEU settings I may have set in Casper Admin. Workflow is as follows: upload package to JSS via Casper Admin, set category, FEU options, etc. in Casper Admin, then call up jss_helper and promote the package to the appropriate policy. Bit of a JSS newb here, and I've got a slick install of AutoPkgr running with a few JSS recipes, so maybe there's a workflow step I'm missing here? Or maybe it's more of a jss_helper thing?

Thoughts?

@sheagcraig
Copy link
Collaborator

Hey @mikevmeyer nice to hear from you.

I'm guessing it definitely is not something you're doing wrong. Just looking at the code to review, however, it just takes the name/id of the new package and replaces the name/id of the old package in the policy object. The policy doesn't handle any of that information (it's delegated to the package object); so jss_helper doesn't modify the package at all.

Are you sure that subsequent AutoPkg runs aren't modifying the package object after you have set the FEU, etc?

Also something to check-in the way you describe your process above, are you saving the changes you made to the package before you run jss_helper? Its been awhile, but if I remember correctly, you have to manually hit SAVE in Casper Admin to commit changes (and potentially sync them too?), or quit Casper Admin, before the API will have access to the updated values.

@mikevmeyer
Copy link
Author

Hi @sheagcraig, thanks for the reply...
I'm definitely going to take a hard look at the workflow, before any real red flags should be raised on this issue.

You mention really good points about making sure the SAVE in Casper Admin and commit/sync processes have fully finished before running jss_helper. I do recall moving fairly quickly thru these workflows, and it's very well possible the JSS just hadn't caught up to the time I went in and did the jss_helper actions. I'm going to test those very carefully, and I'll let you know the results....

BTW, I've been using all of these tools with a hosted instance of the JSS, and they do work quite well!

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

No branches or pull requests

2 participants