Skip to content

Commit

Permalink
Display an error message when attempting to import a profile that doe…
Browse files Browse the repository at this point in the history
…s not nave a PayloadType of 'Configuration'
  • Loading branch information
gregneagle committed Feb 20, 2015
1 parent 1745cd2 commit b145d6f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion code/client/makepkginfo
Expand Up @@ -136,6 +136,9 @@ def getCatalogInfoForProfile(profile_path):
cataloginfo['unattended_uninstall'] = True
cataloginfo['minimum_os_version'] = '10.7'
cataloginfo['minimum_munki_version'] = '2.2'
else:
print >> sys.stderr, (
'Profile PayloadType is %s' % profile.get('PayloadType'))
return cataloginfo


Expand Down Expand Up @@ -862,7 +865,11 @@ def main():

elif munkicommon.hasValidConfigProfileExt(item):
catinfo = getCatalogInfoForProfile(item)

if not catinfo:
print >> sys.stderr, (
"%s doesn't appear to be a supported configuration "
"profile!" % item)
exit(-1)
else:
print >> sys.stderr, "%s is not a valid installer item!" % item
exit(-1)
Expand Down

0 comments on commit b145d6f

Please sign in to comment.