Skip to content

Commit

Permalink
Update log messages in PKIServer.store_passwords()
Browse files Browse the repository at this point in the history
  • Loading branch information
edewata committed Apr 22, 2024
1 parent 54ec3b7 commit c90ce15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 6 additions & 0 deletions base/server/python/pki/server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1314,6 +1314,12 @@ def load_passwords(self):
pki.util.load_properties(self.password_conf, self.passwords)

def store_passwords(self):

if os.path.exists(self.password_conf):
logger.info('Updating %s', self.password_conf)
else:
logger.info('Creating %s', self.password_conf)

self.store_properties(self.password_conf, self.passwords)

def remove_passwords(self, force=False):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ def spawn(self, deployer):
logger.info('Generating random replication manager password')
instance.passwords['replicationdb'] = pki.generate_password()

logger.info('Creating %s', instance.password_conf)
instance.store_passwords()

deployer.create_server_nssdb()
Expand Down

0 comments on commit c90ce15

Please sign in to comment.