Skip to content

Commit 7891078

Browse files
committed
switch if/elif
1 parent 7125e73 commit 7891078

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

osg_configure/configure_modules/gratia.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,7 @@ def configure(self, attributes):
168168
probe_config_files = self.get_installed_probe_config_files()
169169
probes_iter = probe_config_files.keys()
170170
for probe in probes_iter:
171-
if probe in self._old_job_managers:
172-
continue
173-
elif probe in self._job_managers:
171+
if probe in self._job_managers:
174172
if probe not in self._probe_config:
175173
# Probe is installed but we don't have configuration for it
176174
# might be due to pbs-lsf probe sharing or relevant job
@@ -181,6 +179,8 @@ def configure(self, attributes):
181179
probe_host = self.enabled_probe_hosts['jobmanager']
182180
else:
183181
continue
182+
elif probe in self._old_job_managers:
183+
continue
184184
else:
185185
if probe in self.enabled_probe_hosts:
186186
probe_host = self.enabled_probe_hosts[probe]

0 commit comments

Comments
 (0)