Skip to content

Commit 3f9c8af

Browse files
author
Ivan Davydenko
committed
[cli-sessions] Remove redundant check: SERIAL_CONSOLE table do not contain max_sessions field.
1 parent 04ca8f6 commit 3f9c8af

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

scripts/hostcfgd

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1739,12 +1739,6 @@ class SerialConsoleCfg:
17391739
sysrq_capabilities | set here | serial-config.service restarted.
17401740
'''
17411741

1742-
# max_sessions applied in limits.conf by PamLimitsCfg
1743-
if key in ['max_sessions']:
1744-
syslog.syslog(syslog.LOG_DEBUG,
1745-
f'SerialConsoleCfg: skip max_sessions in SerialConsoleCfg apply config handler')
1746-
return
1747-
17481742
if self.cache.get(key, {}) != data:
17491743
''' Config changed, need to restart the serial-config.service '''
17501744
syslog.syslog(syslog.LOG_INFO, f'Set serial-config parameter {key} value: {data}')

0 commit comments

Comments
 (0)