Skip to content

Commit af5649e

Browse files
committed
still not sure why Swift TOO server is timing out....
1 parent f5c0d97 commit af5649e

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

tom_swift/swift.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -662,14 +662,10 @@ def validate_observation(self, observation_payload) -> []:
662662
too_is_valid = self.swift_api.too.validate()
663663
logger.debug(f'validate_observation response: {too_is_valid}')
664664

665-
# TODO: at the moment, too.server_validate() is timing out, so by-pass this
666-
# while we proceed with development.
667-
#if too_is_valid:
668-
# # if the too was internally valid, now validate with the server
669-
# logger.debug(f'validate_observation - calling too.server_validate()')
670-
# too_is_server_valid = self.swift_api.too.server_validate()
671-
too_is_server_valid = True # in lieu of calling too.server_validate()
672-
665+
if too_is_valid:
666+
# if the too was internally valid, now validate with the server
667+
logger.debug(f'validate_observation - calling too.server_validate()')
668+
too_is_server_valid = self.swift_api.too.server_validate()
673669

674670
#logger.debug(f'validate_observation - too.status: {self.swift_api.too.status}')
675671
##logger.debug(f'validate_observation - dir(too.status): {dir(self.swift_api.too.status)}')

0 commit comments

Comments
 (0)