Skip to content

Commit

Permalink
When installing a profile, properly get and record the result of the …
Browse files Browse the repository at this point in the history
…install
  • Loading branch information
gregneagle committed Jan 16, 2015
1 parent 847ce2d commit e660411
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/client/munkilib/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,10 @@ def installWithInfo(
"install_type 'appdmg' is deprecated. Use 'copy_from_dmg'.")
retcode = copyAppFromDMG(itempath)
elif installer_type == 'profile':
retcode = profiles.install_profile(itempath)
# profiles.install_profile returns True/False
retcode = 0
if not profiles.install_profile(itempath):
retcode = -1
elif installer_type == "nopkg": # Packageless install
if (item.get("RestartAction") == "RequireRestart" or
item.get("RestartAction") == "RecommendRestart"):
Expand Down

0 comments on commit e660411

Please sign in to comment.