Previously were defaulting to a string, which
always compared greater than elapsed, so never
timed out.
Fixes: #12820
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit
8e275049a0a8b976fc9eb5c63dcefe01bedcc711)
if mount_wait > 0:
log.info("Fuse mount waits {0} seconds before checking /sys/".format(mount_wait))
time.sleep(mount_wait)
- timeout = self.client_config.get('mount_timeout', '30')
+ timeout = int(self.client_config.get('mount_timeout', 30))
waited = 0
while list_connections() == pre_mount_conns:
time.sleep(1)