mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-03-23 06:50:13 +03:00
osdict: Add a helpful __repr__
This commit is contained in:
parent
31e4b72a8b
commit
65e1187c10
@ -224,6 +224,9 @@ class _OsVariant(object):
|
||||
self.eol = self._get_eol()
|
||||
self.sortby = self._get_sortby()
|
||||
|
||||
def __repr__(self):
|
||||
return "<%s name=%s>" % (self.__class__.__name__, self.name)
|
||||
|
||||
|
||||
########################
|
||||
# Internal helper APIs #
|
||||
|
Loading…
x
Reference in New Issue
Block a user