Fix error reporting in case locale-gen fails on non-Ubuntu systems.

reviewable/pr18780/r1
Augustus Kling 11 years ago
parent eabc9cd775
commit de19375d1b

@ -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…
Cancel
Save