Skip to content

Commit

Permalink
process attrs so it work with azure
Browse files Browse the repository at this point in the history
  • Loading branch information
sredxny committed Sep 6, 2023
1 parent d75bd0e commit 9ec94bb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions service_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -1665,8 +1665,14 @@ func elementToBytes(el *etree.Element) ([]byte, error) {
for _, childEl := range el.FindElements("//*") {
ns := childEl.NamespaceURI()
if ns != "" {
for _, attr := range el.Attr {
if childEl.Space == attr.Space {
goto RUNCONTINUE
}
}
namespaces[childEl.Space] = ns
}
RUNCONTINUE:
}

doc := etree.NewDocument()
Expand Down

0 comments on commit 9ec94bb

Please sign in to comment.