mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 04:11:25 -07:00
made missing cli tools non fatal (#37194)
* made missing cli tools non fatal * remove bare exceptions these shoudl not be there as they can prevent 'wanted' exits
This commit is contained in:
parent
42912e1ac8
commit
0c2e7fd841
3 changed files with 39 additions and 28 deletions
|
@ -29,7 +29,7 @@ def get_file_content(path, default=None, strip=True):
|
|||
data = default
|
||||
finally:
|
||||
datafile.close()
|
||||
except:
|
||||
except Exception:
|
||||
# ignore errors as some jails/containers might have readable permissions but not allow reads to proc
|
||||
# done in 2 blocks for 2.4 compat
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue