Skip to content

Unwanted attributes not removed #22

Description

@alexjfisher

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions