From eca36953c8715128a7bcb63acbf8095318588703 Mon Sep 17 00:00:00 2001 From: Luca Berruti Date: Thu, 8 May 2014 14:41:55 +0200 Subject: [PATCH] Make alternatives module python 5 compatible --- system/alternatives | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/alternatives b/system/alternatives index 503f9745f12..dfdc4e2f81a 100755 --- a/system/alternatives +++ b/system/alternatives @@ -126,7 +126,7 @@ def main(): ) module.exit_json(changed=True) - except subprocess.CalledProcessError as cpe: + except subprocess.CalledProcessError, cpe: module.fail_json(msg=str(dir(cpe))) else: module.exit_json(changed=False)