better message and timeout warning when timeout (#74885)

* better message and timeout warning when timeout
This commit is contained in:
Brian Coca 2021-06-04 10:21:12 -04:00 committed by GitHub
parent 3d8feed2cf
commit 6a883f1cd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- gather_facts, improved message on timeout.

View file

@ -581,7 +581,8 @@ class LinuxHardware(Hardware):
elif time.time() > results[mount]['timelimit']: elif time.time() > results[mount]['timelimit']:
done = True done = True
results[mount]['info']['note'] = 'Could not get extra information: %s.' % (to_text(res.get())) self.module.warn("Timeout exceeded when getting mount info for %s" % mount)
results[mount]['info']['note'] = 'Could not get extra information due to timeout'
except Exception as e: except Exception as e:
import traceback import traceback
done = True done = True