Consider this XML file
<settings>
<setting name="foo" unwanted_attribute="bar">baz</setting>
</settings>
and this puppet code
xml_fragment { 'test':
path => 'test.xml',
xpath => '/settings/setting[@name=\'foo\']',
content => {
value => 'baz',
attributes => {
'name' => 'foo',
},
},
}
I would expect the puppet to remove unwanted_attribute, but this doesn't happen.
Consider this XML file
and this puppet code
I would expect the puppet to remove
unwanted_attribute, but this doesn't happen.