hostname: add support for Anolis distro (#74829)

project website https://openanolis.org/

Signed-off-by: Liwei Ge <geliwei@openanolis.org>
This commit is contained in:
geliwei 2021-05-27 21:00:35 +08:00 committed by GitHub
parent 774e563452
commit 138b3b6851
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- modules - add Anolis distro in hostname.py. project website https://openanolis.org/

View file

@ -713,6 +713,12 @@ class CentOSHostname(Hostname):
strategy_class = RedHatStrategy
class AnolisOSHostname(Hostname):
platform = 'Linux'
distribution = 'Anolis'
strategy_class = RedHatStrategy
class ClearLinuxHostname(Hostname):
platform = 'Linux'
distribution = 'Clear-linux-os'