diff options
author | Dimitri John Ledkov <dimitri.ledkov@canonical.com> | 2014-07-24 11:57:17 +0100 |
---|---|---|
committer | Dimitri John Ledkov <dimitri.ledkov@canonical.com> | 2014-07-24 11:57:17 +0100 |
commit | c0a423ea72b4e9c8e21c07c5ca27dee54133fc19 (patch) | |
tree | b02902ea9a892bbc5daf5e9789c593311d29460b /setup.py | |
parent | 9c6d12b4477b7f36ccdea04310451a84f09e1388 (diff) | |
download | vyos-cloud-init-c0a423ea72b4e9c8e21c07c5ca27dee54133fc19.tar.gz vyos-cloud-init-c0a423ea72b4e9c8e21c07c5ca27dee54133fc19.zip |
refactor redundant systemd_root
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -59,8 +59,6 @@ def systemd_unitdir(): return '/lib/systemd/system' return str(path).strip() -systemd_root = systemd_unitdir() - INITSYS_FILES = { 'sysvinit': [f for f in glob('sysvinit/redhat/*') if is_f(f)], 'sysvinit_deb': [f for f in glob('sysvinit/debian/*') if is_f(f)], @@ -70,7 +68,7 @@ INITSYS_FILES = { INITSYS_ROOTS = { 'sysvinit': '/etc/rc.d/init.d', 'sysvinit_deb': '/etc/init.d', - 'systemd': systemd_root, + 'systemd': systemd_unitdir(), 'upstart': '/etc/init/', } INITSYS_TYPES = sorted(list(INITSYS_ROOTS.keys())) |