From 8a6ef8c69a29bb6d8e1265be5dac7a9d80bc94f7 Mon Sep 17 00:00:00 2001 From: Shaun Zinck Date: Sun, 24 Mar 2013 13:47:56 -0500 Subject: [PATCH] service: fix typo 'err' in SunOS service class --- library/service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/service b/library/service index 3ac3f5c8f72..e179e044371 100644 --- a/library/service +++ b/library/service @@ -752,7 +752,7 @@ class SunOSService(Service): rc, stdout, stderr = self.execute_command("%s -l %s" % (self.svcs_cmd, self.name)) if rc != 0: - if err: + if stderr: self.module.fail_json(msg=stderr) else: self.module.fail_json(msg=stdout)