Sfoglia il codice sorgente

devices: include devclass when comparing devices

Marek Marczykowski-Górecki 5 anni fa
parent
commit
5414739272
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      qubesadmin/devices.py

+ 1 - 0
qubesadmin/devices.py

@@ -94,6 +94,7 @@ class DeviceInfo(object):
     def __eq__(self, other):
         try:
             return (
+                self.devclass == other.devclass and
                 self.backend_domain == other.backend_domain and
                 self.ident == other.ident
             )