Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CastorScript
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
atlas-tdaq-software
CastorScript
Merge requests
!29
Resolve "Initial Publish uptime of CS instance to IS"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Initial Publish uptime of CS instance to IS"
22-initial-publish-uptime-of-cs-instance-to-is
into
master
Overview
26
Commits
25
Pipelines
14
Changes
1
Merged
Jonas Ladefoged Holm
requested to merge
22-initial-publish-uptime-of-cs-instance-to-is
into
master
5 years ago
Overview
16
Commits
25
Pipelines
14
Changes
1
Expand
Closes
#22 (closed)
Edited
5 years ago
by
Jonas Ladefoged Holm
0
0
Merge request reports
Viewing commit
116e0df2
Prev
Next
Show latest version
1 file
+
2
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
116e0df2
Giving pylint the blue pill.. (pylint ignore)
· 116e0df2
Jonas
authored
5 years ago
Script/cs/Threads/InfoServiceThread.py
+
2
−
2
Options
@@ -118,8 +118,8 @@ class InfoServiceThread(threading.Thread):
def
cleanup_unwanted_stuff
(
self
,
name_of_unwanted_IS_entry
,
type_of_unwanted_IS_entry
):
'''
For deleting old castorscript information in case of change of format
'''
it
=
ispy
.
ISInfoIterator
(
self
.
ipc_partition
,
self
.
IS_server
,
ispy
.
ISCriteria
(
'
.*
'
))
is_info_dictionary
=
ispy
.
ISInfoDictionary
(
self
.
ipc_partition
)
it
=
ispy
.
ISInfoIterator
(
self
.
ipc_partition
,
self
.
IS_server
,
ispy
.
ISCriteria
(
'
.*
'
))
#pylint: disable=no-member
is_info_dictionary
=
ispy
.
ISInfoDictionary
(
self
.
ipc_partition
)
#pylint: disable=no-member
self
.
logger
.
debug
(
"
Removing old objects of with old type %s, with name %s in the %s server:
"
,
type_of_unwanted_IS_entry
,
name_of_unwanted_IS_entry
,
self
.
IS_server
)
while
it
.
next
():
if
str
(
it
.
name
()).
find
(
name_of_unwanted_IS_entry
)
is
not
-
1
and
str
(
it
.
type
()).
find
(
type_of_unwanted_IS_entry
)
is
not
-
1
:
Loading