Commit df86a6a
Jeremy Price
Don't create blank modelnumbers
We had a user report that they had a machine with bad data in Jamf --
missing fields like model, model identifier, etc...
`jamf['hardware']['model_identifier']` ended up being blank as a result,
and as there's no _blank_ modelnumber, it would try to create one....
which cause the script to crash.
In this change we head off that issue by not only checking whether or not
`jamf['hardware']['model_identifier']` is in modelnumbers, but whether or not it's blank
We do the same for `jamf['general']['model_identifier']`1 parent ac50113 commit df86a6a
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
772 | 772 | | |
773 | 773 | | |
774 | 774 | | |
775 | | - | |
| 775 | + | |
776 | 776 | | |
777 | 777 | | |
778 | 778 | | |
779 | 779 | | |
780 | 780 | | |
781 | 781 | | |
782 | 782 | | |
783 | | - | |
| 783 | + | |
784 | 784 | | |
785 | 785 | | |
786 | 786 | | |
| |||
0 commit comments