Skip to content

Commit

Permalink
feat(Group): RHICOMPL-3454 provide a list of parent IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
skateman committed Nov 28, 2022
1 parent 0e5ec8e commit d6ca5df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/openscap_parser/group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ def parent_id
@parent_id = parsed_xml.xpath('../@id').to_s
end

def parent_ids
@parent_ids = parsed_xml.xpath('ancestor::Group/@id').map(&:value)
end

def parent_type
if parsed_xml.xpath("name(..)='Group'")
@parent_type = 'Group'
Expand Down
2 changes: 1 addition & 1 deletion lib/openscap_parser/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module OpenscapParser
VERSION = "1.3.1"
VERSION = "1.4.0"
end

0 comments on commit d6ca5df

Please sign in to comment.