add SLE12 support to hostname.py
This commit is contained in:
parent
de813195c5
commit
36ce019beb
1 changed files with 9 additions and 0 deletions
|
@ -368,6 +368,15 @@ class FedoraHostname(Hostname):
|
||||||
distribution = 'Fedora'
|
distribution = 'Fedora'
|
||||||
strategy_class = SystemdStrategy
|
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):
|
class OpenSUSEHostname(Hostname):
|
||||||
platform = 'Linux'
|
platform = 'Linux'
|
||||||
distribution = 'Opensuse '
|
distribution = 'Opensuse '
|
||||||
|
|
Loading…
Reference in a new issue