better message and timeout warning when timeout (#74885)
* better message and timeout warning when timeout
This commit is contained in:
parent
3d8feed2cf
commit
6a883f1cd6
2 changed files with 4 additions and 1 deletions
2
changelogs/fragments/better_timeout_msg.yml
Normal file
2
changelogs/fragments/better_timeout_msg.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- gather_facts, improved message on timeout.
|
|
@ -581,7 +581,8 @@ class LinuxHardware(Hardware):
|
|||
|
||||
elif time.time() > results[mount]['timelimit']:
|
||||
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:
|
||||
import traceback
|
||||
done = True
|
||||
|
|
Loading…
Reference in a new issue