Closed MLBZ521 closed 9 months ago
Thanks, seems harmless. Probably not something they could or should consider in AutoPkg generally since there can be values that are, for example, dictionaries.
Yeah, from JamfUploader
, in this specific location, it shouldn't cause an issue -- I didn't think.
From a higher level, in autopkg
, it may/should be more...targeted, is what I'm thinking as well.
When a substitutable key with non-
str
(e.g. boolean-like) value is ran throughxml.sax.saxutils.escape
, it's being converted to abool
and then attempts to runstr
's.replace
method on it, causing it to fail.Sample error:
AutoPkg is currently written to convert all the
YAML
values to their Pythontype
s, which helps lead to this issue. I have submitted a proposal to prevent this in AutoPkg itself as well in #911, but not sure if this is something that will be/or should be considered as it makes an assumption that all variable types are and should be of thestr
type.This is some-what the recipe writers fault, which I acknowledge as well.