[osinfo-db PATCH 1/2] tests: get the release/EOL dates

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 tests/osinfo.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tests/osinfo.py b/tests/osinfo.py
index 3585f44..20c1866 100644
--- a/tests/osinfo.py
+++ b/tests/osinfo.py
@@ -137,6 +137,14 @@ class Os(_XMLBase):
     def get_network_install_resources(self, node):
         return self._get_resources(node, 'network-install')
 
+    @_cache_property
+    def release_date(self):
+        return self._get_text('release-date')
+
+    @_cache_property
+    def eol_date(self):
+        return self._get_text('eol-date')
+
 
 class Resources(_XMLBase):
     @_cache_property
-- 
2.21.0

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux