Merge pull request #1399 from SUSE/devel

Add SLE12 support to hostname.py
This commit is contained in:
Brian Coca 2015-05-26 10:08:52 -04:00
commit 1736c8dfea

View file

@ -368,6 +368,15 @@ class FedoraHostname(Hostname):
distribution = 'Fedora'
strategy_class = SystemdStrategy
class SLESHostname(Hostname):
platform = 'Linux'
distribution = 'Suse linux enterprise server '
distribution_version = get_distribution_version()
if distribution_version and LooseVersion(distribution_version) >= LooseVersion("12"):
strategy_class = SystemdStrategy
else:
strategy_class = UnimplementedStrategy
class OpenSUSEHostname(Hostname):
platform = 'Linux'
distribution = 'Opensuse '