Skip to content

Commit

Permalink
backup: fix handling labels in Qubes 4.0 backups
Browse files Browse the repository at this point in the history
Labels can be referred as either id or name. Support both ways.

Fixes QubesOS/qubes-issues#3211
  • Loading branch information
marmarek committed Oct 29, 2017
1 parent 7bcab46 commit 7f728e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qubesadmin/backup/core3.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def load_labels(self, labels_element):
ident = node.get('id')
assert ident is not None
self.labels[ident] = node.text
self.labels[node.text] = node.text


def load_globals(self, globals_element):
Expand Down

0 comments on commit 7f728e2

Please sign in to comment.