init_cmd inheritance fixes
This commit is contained in:
parent
5dca68a8f8
commit
6d37f8f447
@ -53,7 +53,7 @@ class Distro(object):
|
||||
ci_sudoers_fn = "/etc/sudoers.d/90-cloud-init-users"
|
||||
hostname_conf_fn = "/etc/hostname"
|
||||
tz_zone_dir = "/usr/share/zoneinfo"
|
||||
init_cmd = [] # Not implemented
|
||||
init_cmd = ['service'] # systemctl, service etc
|
||||
|
||||
def __init__(self, name, cfg, paths):
|
||||
self._paths = paths
|
||||
|
@ -48,7 +48,6 @@ class Distro(distros.Distro):
|
||||
network_conf_fn = "/etc/network/interfaces"
|
||||
tz_conf_fn = "/etc/timezone"
|
||||
tz_local_fn = "/etc/localtime"
|
||||
init_cmd = ['service']
|
||||
|
||||
def __init__(self, name, cfg, paths):
|
||||
distros.Distro.__init__(self, name, cfg, paths)
|
||||
|
@ -37,6 +37,7 @@ class Distro(distros.Distro):
|
||||
network_conf_fn = "/etc/conf.d/net"
|
||||
tz_conf_fn = "/etc/timezone"
|
||||
tz_local_fn = "/etc/localtime"
|
||||
init_cmd = ['']
|
||||
|
||||
def __init__(self, name, cfg, paths):
|
||||
distros.Distro.__init__(self, name, cfg, paths)
|
||||
|
@ -49,7 +49,6 @@ class Distro(distros.Distro):
|
||||
network_script_tpl = '/etc/sysconfig/network-scripts/ifcfg-%s'
|
||||
resolve_conf_fn = "/etc/resolv.conf"
|
||||
tz_local_fn = "/etc/localtime"
|
||||
init_cmd = ['service']
|
||||
|
||||
def __init__(self, name, cfg, paths):
|
||||
distros.Distro.__init__(self, name, cfg, paths)
|
||||
|
Loading…
x
Reference in New Issue
Block a user