backup: fix handling labels in Qubes 4.0 backups

Labels can be referred as either id or name. Support both ways.

Fixes QubesOS/qubes-issues#3211
This commit is contained in:
Marek Marczykowski-Górecki 2017-10-29 02:58:37 +02:00
parent 7bcab46f96
commit 7f728e2dad
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -77,6 +77,7 @@ class Core3Qubes(qubesadmin.backup.BackupApp):
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):