Skip to content

Commit

Permalink
Not change FIPS option when config not set
Browse files Browse the repository at this point in the history
  • Loading branch information
xumia committed Jun 26, 2023
1 parent d3b1943 commit 1869fb8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/hostcfgd
Original file line number Diff line number Diff line change
Expand Up @@ -1683,6 +1683,9 @@ class FipsCfg(object):

def load(self, data={}):
common_config = data.get('global', {})
if not common_config:
syslog.syslog(syslog.LOG_INFO, f'FipsCfg: skipped the FIPS config, the FIPS setting is empty.')
return
mode = common_config.get('mode', '').lower()
self.enabled = '0'
self.enforced = '0'
Expand Down

0 comments on commit 1869fb8

Please sign in to comment.