Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ssa
workspaces
Commits
798426a8
Commit
798426a8
authored
4 years ago
by
jgoldste
Browse files
Options
Downloads
Patches
Plain Diff
SSA-6324: fixes locking message problem discovered in SSA-6458
parent
13221ed5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/cli/utilities/proprietary_setter/src/proprietary_setter/prop_setter.py
+3
-3
3 additions, 3 deletions
.../proprietary_setter/src/proprietary_setter/prop_setter.py
with
3 additions
and
3 deletions
apps/cli/utilities/proprietary_setter/src/proprietary_setter/prop_setter.py
+
3
−
3
View file @
798426a8
...
...
@@ -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
'
)
...
...
This diff is collapsed.
Click to expand it.
Janet Goldstein
@jgoldste
mentioned in commit
aebd8e62
·
4 years ago
mentioned in commit
aebd8e62
mentioned in commit aebd8e62d196929658a085709f8219e20bbf94b1
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment