mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00:00
Do not assume that /var/lib/locales/supported.d/local exist
Since people can generate their own image with debootstrap, and this wouldn't create a file /var/lib/locales/supported.d/local, better check if it exist and work if it doesn't. Fix #656
This commit is contained in:
committed by
Matt Clay
parent
d031cd2998
commit
c6391741a2
@@ -175,7 +175,7 @@ def main():
|
|||||||
state = module.params['state']
|
state = module.params['state']
|
||||||
|
|
||||||
if not os.path.exists("/etc/locale.gen"):
|
if not os.path.exists("/etc/locale.gen"):
|
||||||
if os.path.exists("/var/lib/locales/supported.d/local"):
|
if os.path.exists("/var/lib/locales/supported.d/"):
|
||||||
# Ubuntu created its own system to manage locales.
|
# Ubuntu created its own system to manage locales.
|
||||||
ubuntuMode = True
|
ubuntuMode = True
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user