update 2023-05-30 from gitmlz
Change-Id: I0b1eb2941692fde5c9d98f107fc38315625dcfdb
This commit is contained in:
@ -39,7 +39,7 @@ def main():
|
||||
frappy_unit = '/lib/systemd/system/frappy@.service'
|
||||
wants_dir = normal_dir + '/frappy.target.wants'
|
||||
|
||||
all_servers = [base.rstrip('_cfg') for (base, ext) in
|
||||
all_servers = [base[:-4] if base.endswith('_cfg') else base for (base, ext) in
|
||||
map(path.splitext, os.listdir(config_dir)) if ext == '.py']
|
||||
all_servers.sort()
|
||||
|
||||
|
Reference in New Issue
Block a user