mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix error reporting in case locale-gen fails on non-Ubuntu systems.
This commit is contained in:
parent
1fb830fba6
commit
c3f182bc9b
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ def apply_change(targetState, name, encoding):
|
|||
|
||||
localeGenExitValue = call("locale-gen")
|
||||
if localeGenExitValue!=0:
|
||||
module.fail_json(msg="locale.gen failed to execute, it returned "+str(localeGenExitValue))
|
||||
raise EnvironmentError(localeGenExitValue, "locale.gen failed to execute, it returned "+str(localeGenExitValue))
|
||||
|
||||
def apply_change_ubuntu(targetState, name, encoding):
|
||||
"""Create or remove locale.
|
||||
|
|
Loading…
Reference in a new issue