Skip to content

Commit

Permalink
[cli-sessions] Remove redundant check: SERIAL_CONSOLE table do not co…
Browse files Browse the repository at this point in the history
…ntain max_sessions field.
  • Loading branch information
i-davydenko committed May 22, 2024
1 parent 04ca8f6 commit 3f9c8af
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions scripts/hostcfgd
Original file line number Diff line number Diff line change
Expand Up @@ -1739,12 +1739,6 @@ class SerialConsoleCfg:
sysrq_capabilities | set here | serial-config.service restarted.
'''

# max_sessions applied in limits.conf by PamLimitsCfg
if key in ['max_sessions']:
syslog.syslog(syslog.LOG_DEBUG,
f'SerialConsoleCfg: skip max_sessions in SerialConsoleCfg apply config handler')
return

if self.cache.get(key, {}) != data:
''' Config changed, need to restart the serial-config.service '''
syslog.syslog(syslog.LOG_INFO, f'Set serial-config parameter {key} value: {data}')
Expand Down

0 comments on commit 3f9c8af

Please sign in to comment.