Skip to content

Commit

Permalink
Merge pull request #3658 from sqqueak/fix-static-methods
Browse files Browse the repository at this point in the history
Removed static methods from TopologyPoolManager (SOFTWARE-5347)
  • Loading branch information
brianhlin authored Mar 8, 2024
2 parents d2cd4e9 + be3618b commit cddfeba
Show file tree
Hide file tree
Showing 2 changed files with 270 additions and 258 deletions.
9 changes: 5 additions & 4 deletions bin/osg-notify
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ if __name__ == "__main__" and __package__ is None:
sys.path.append(_parent + "/src")

import topology_utils
from topology_utils import TopologyPoolManager
import net_name_addr_utils

# Parts of this implementation are from the following StackOverflow answer:
Expand Down Expand Up @@ -182,13 +183,13 @@ def has_non_printable_ascii_characters(contents):

def main():
args = parseargs()

pm = TopologyPoolManager()
recipients = set(args.recipients.split())
if args.oim_recipients and 'vos' in args.oim_recipients:
attempts = 3
while attempts > 0:
try:
results = topology_utils.get_vo_contacts(args)
results = pm.get_vo_contacts(args)
break
except topology_utils.InvalidPathError as exc:
print(exc)
Expand All @@ -212,9 +213,9 @@ def main():
while attempts > 0:
try:
if args.fqdn_filter:
results = topology_utils.get_resource_contacts_by_fqdn(args)
results = pm.get_resource_contacts_by_fqdn(args)
else:
results = topology_utils.get_resource_contacts(args)
results = pm.get_resource_contacts(args)
break
except topology_utils.InvalidPathError as exc:
exit(str(exc))
Expand Down
Loading

0 comments on commit cddfeba

Please sign in to comment.