2017-01-18 19:49:48 +01:00
|
|
|
References: bsc#1010060
|
|
|
|
|
2019-02-04 19:46:20 +01:00
|
|
|
Index: virt-manager-2.1.0/virtinst/urldetect.py
|
2017-01-18 19:49:48 +01:00
|
|
|
===================================================================
|
2019-02-04 19:46:20 +01:00
|
|
|
--- virt-manager-2.1.0.orig/virtinst/urldetect.py
|
|
|
|
+++ virt-manager-2.1.0/virtinst/urldetect.py
|
|
|
|
@@ -258,6 +258,12 @@ class _SUSEContent(object):
|
2018-10-30 23:00:52 +01:00
|
|
|
self.product_name.strip().rsplit(' ')[5][2])
|
|
|
|
distro_version = sle_version
|
|
|
|
|
|
|
|
+ # SUSE Container as a Service Platform
|
|
|
|
+ if "Container" in self.product_name:
|
|
|
|
+ distro_version = self.product_name.strip().rsplit(' ')[6]
|
|
|
|
+ elif "CaaS" in self.product_name:
|
|
|
|
+ distro_version = self.product_name.strip().rsplit(' ')[3]
|
|
|
|
+
|
|
|
|
return distro_version
|
2017-01-18 19:49:48 +01:00
|
|
|
|
|
|
|
|
2019-02-04 19:46:20 +01:00
|
|
|
@@ -544,6 +550,9 @@ class _SuseDistro(_RHELDistro):
|
2018-10-30 23:00:52 +01:00
|
|
|
# Tumbleweed 8 digit date
|
|
|
|
return "opensusetumbleweed"
|
|
|
|
|
|
|
|
+ if self._variant_prefix.startswith(("caasp")):
|
|
|
|
+ return self._variant_prefix + distro_version
|
2017-09-15 23:07:50 +02:00
|
|
|
+
|
2018-10-30 23:00:52 +01:00
|
|
|
if int(version) < 10:
|
|
|
|
return self._variant_prefix + "9"
|
|
|
|
|
2019-02-04 19:46:20 +01:00
|
|
|
@@ -616,6 +625,14 @@ class _OpensuseDistro(_SuseDistro):
|
2018-10-30 23:00:52 +01:00
|
|
|
famregex = ".*openSUSE.*"
|
|
|
|
|
|
|
|
|
2019-02-04 19:46:20 +01:00
|
|
|
+class _CAASPDistro(_SuseDistro):
|
2018-10-30 23:00:52 +01:00
|
|
|
+ PRETTY_NAME = "SLES"
|
2019-02-04 19:46:20 +01:00
|
|
|
+ matching_distros = ["caasp"]
|
2018-10-30 23:00:52 +01:00
|
|
|
+ _variant_prefix = "caasp"
|
|
|
|
+ _suse_regex = [".*SUSE Container as a Service Platform*", ".*SUSE CaaS Platform*"]
|
2019-03-25 17:16:57 +01:00
|
|
|
+ famregex = ".*(SUSE Container as a Service Platform|SUSE CaaS Platform).*"
|
2017-01-18 19:49:48 +01:00
|
|
|
+
|
2017-09-15 23:07:50 +02:00
|
|
|
+
|
2019-02-04 19:46:20 +01:00
|
|
|
class _OESDistro(_SuseDistro):
|
2018-10-30 23:00:52 +01:00
|
|
|
PRETTY_NAME = "OES"
|
2019-02-04 19:46:20 +01:00
|
|
|
matching_distros = ["oes"]
|