Yaml block only created if root node has attributes