If an element in the customizations.filesystem array is not an object, the existing code would fail the conversion without an error, but would fail on the d["mountpoint"].(type) conversion, which produces an error message that isn't very useful:
mountpoint must be string, got <nil> of type <nil>
The commit catches the conversion error and instead prints a more useful error message.
If an element in the
customizations.filesystem
array is not an object, the existing code would fail the conversion without an error, but would fail on thed["mountpoint"].(type)
conversion, which produces an error message that isn't very useful:The commit catches the conversion error and instead prints a more useful error message.