From 5fcbfa984deadea35c7e70d4f9b611d51b2ff137 Mon Sep 17 00:00:00 2001 From: Sharif Olorin Date: Tue, 16 Jul 2013 09:30:20 +1000 Subject: [PATCH] More informative error message on failure to resolve tmpdir --- lib/ansible/runner/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index 9d37d9fc39d..6a092d9c7ff 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -726,7 +726,9 @@ class Runner(object): # Catch any other failure conditions here; files should never be # written directly to /. if rc == '/': - raise errors.AnsibleError('refusing to use / as a temporary directory.') + raise errors.AnsibleError('failed to resolve remote temporary ' + 'directory from %s: `%s` returned ' + 'empty string' % (basetmp, cmd)) return rc