A few coding style cleanups

reviewable/pr18780/r1
Wouter Bolsterlee 10 years ago
parent fd061d437c
commit 19b49c1d96

@ -289,7 +289,7 @@ def main():
# in run_command by setting path_prefix here. # in run_command by setting path_prefix here.
path_prefix = None path_prefix = None
if env: if env:
path_prefix="/".join(pip.split('/')[:-1]) path_prefix = "/".join(pip.split('/')[:-1])
# Automatically apply -e option to extra_args when source is a VCS url. VCS # Automatically apply -e option to extra_args when source is a VCS url. VCS
# includes those beginning with svn+, git+, hg+ or bzr+ # includes those beginning with svn+, git+, hg+ or bzr+
@ -350,7 +350,8 @@ def main():
changed = 'Successfully installed' in out_pip changed = 'Successfully installed' in out_pip
module.exit_json(changed=changed, cmd=cmd, name=name, version=version, module.exit_json(changed=changed, cmd=cmd, name=name, version=version,
state=state, requirements=requirements, virtualenv=env, stdout=out, stderr=err) state=state, requirements=requirements, virtualenv=env,
stdout=out, stderr=err)
# import module snippets # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *

Loading…
Cancel
Save