Skip to content
Snippets Groups Projects
Commit 798426a8 authored by jgoldste's avatar jgoldste
Browse files

SSA-6324: fixes locking message problem discovered in SSA-6458

parent 13221ed5
No related branches found
No related tags found
No related merge requests found
......@@ -113,7 +113,7 @@ class ProprietaryPeriodSetter:
_LOG.info('(This is where we would have updated the '
'legacy archive if we were in production.)')
legacy_session.rollback()
self.announce_update()
self.announce_update(legacy_proj[0].stoptime)
except UpdateException as exc:
_LOG.error(f'update failure: {exc}')
......@@ -184,7 +184,7 @@ class ProprietaryPeriodSetter:
_LOG.error(f'{ex}')
sys.exit(3)
def announce_update(self):
def announce_update(self, stoptime):
'''
Set up a LogHandler to record the fact we just made a change to
this project.
......@@ -212,7 +212,7 @@ class ProprietaryPeriodSetter:
_LOG.info(f'Attempting to update proprietary period for '
f'{self.project}.')
if self.new_duration_days != 0:
_LOG.info(f'Locking for {self.new_duration_days} days from today')
_LOG.info(f'Locking for {self.new_duration_days} days from {stoptime}')
else:
_LOG.info('Unlocking')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment