update warning to include PayloadIdentifier msg

In the unlikely event a profile with a missing PayloadIdentifier is
successfully parsed, produce a warning.
This commit is contained in:
Brian Warsing
2015-03-14 09:54:47 -07:00
parent eba3458790
commit 45ec79557a

View File

@@ -1126,10 +1126,11 @@ def main():
item = catinfo['name']
print >> sys.stderr, (
"WARNING: %s contains no discernible install criteria!\n"
"If you do not supply a receipt, install item or \n"
"installcheck_script, munki will have no way to determine \n"
"the package's installation state. This can result in \n"
"undesirable or unexpected behaviour (ie. looping).\n") % item
"If you do not supply a receipt, install item, "
"installcheck_script \n"
"or PayloadIdentifier, munki will have no way to determine the \n"
"package's installation state. This can result in undesirable or \n"
"unexpected behaviour (ie. looping).\n") % item
# and now, what we've all been waiting for...
print FoundationPlist.writePlistToString(catinfo)