From b87e7c0f19ca95fd675f86f0295a898a6c8414d7 Mon Sep 17 00:00:00 2001
From: Michael DeHaan <michael.dehaan@gmail.com>
Date: Wed, 13 Mar 2013 22:25:58 -0400
Subject: [PATCH] Let the pip module return output.

---
 library/pip | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/library/pip b/library/pip
index 7a3ece6..bb295b5 100644
--- a/library/pip
+++ b/library/pip
@@ -30,7 +30,7 @@ options:
   name:
     description:
       - The name of a Python library to install
-    required: true
+    required: false
     default: null
   version:
     description:
@@ -230,7 +230,7 @@ def main():
         changed = 'Successfully installed' in out_pip
 
     module.exit_json(changed=changed, cmd=cmd, name=name, version=version,
-                     state=state, requirements=requirements, virtualenv=env)
+                     state=state, requirements=requirements, virtualenv=env, stdout=out, stderr=err)
 
 # this is magic, see lib/ansible/module_common.py
 #<<INCLUDE_ANSIBLE_MODULE_COMMON>>
--
libgit2 0.26.0