better message and timeout warning when timeout (#74885)

* better message and timeout warning when timeout
pull/74318/head
Brian Coca 4 years ago committed by GitHub
parent 3d8feed2cf
commit 6a883f1cd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

@ -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

Loading…
Cancel
Save