From c98b20b2cf247f94e351884bb06d78ec53b6f710 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Fri, 19 Jul 2013 09:22:17 -0400 Subject: [PATCH] Slight style preferences. --- lib/ansible/runner/__init__.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index 6a092d9c7f..7dacfdcb24 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -720,15 +720,12 @@ class Runner(object): result = self._low_level_exec_command(conn, cmd, None, sudoable=False) if result['rc'] != 0: - raise errors.AnsibleError('could not create temporary directory: ' - 'SSH exited with return code %d' % result['rc']) + raise errors.AnsibleError('could not create temporary directory, SSH exited with result %d' % result['rc']) rc = utils.last_non_blank_line(result['stdout']).strip() + '/' # Catch any other failure conditions here; files should never be # written directly to /. if rc == '/': - raise errors.AnsibleError('failed to resolve remote temporary ' - 'directory from %s: `%s` returned ' - 'empty string' % (basetmp, cmd)) + raise errors.AnsibleError('failed to resolve remote temporary directory from %s: `%s` returned empty string' % (basetmp, cmd)) return rc