ansible/library
Stephen Fromm 6265be3aee Fix error handling when switching versions
git module used to check stderr for the string 'error' after calling
switch_version().  This changes that to just look at the return code to
determine whether the command failed.  If the rc is not zero, the git
module will call fail_json().

The problem is that git checkout will summarize the commit message,
such as:

    HEAD is now at ea38409... removing artificial error

When the string 'error' is the commit message, this check will
erroneously think the command failed.

This also removes the method switchLocalBranch() since it is no longer
used.
2012-08-07 11:20:14 -07:00
..
apt whitespace + remove deprecated YAML parser (migration script lives in examples/scripts and warning was added 2012-08-06 20:07:02 -04:00
assemble whitespace + remove deprecated YAML parser (migration script lives in examples/scripts and warning was added 2012-08-06 20:07:02 -04:00
async_status whitespace + remove deprecated YAML parser (migration script lives in examples/scripts and warning was added 2012-08-06 20:07:02 -04:00
async_wrapper whitespace + remove deprecated YAML parser (migration script lives in examples/scripts and warning was added 2012-08-06 20:07:02 -04:00
authorized_key whitespace + remove deprecated YAML parser (migration script lives in examples/scripts and warning was added 2012-08-06 20:07:02 -04:00
command Allow unicode transfer by not base64 encoding. Also: faster 2012-08-02 21:20:43 -04:00
copy whitespace + remove deprecated YAML parser (migration script lives in examples/scripts and warning was added 2012-08-06 20:07:02 -04:00
facter Add encoding lines to python modules such that they can take unicode options if they are fed them, since the 2012-08-02 21:29:10 -04:00
fetch Setup module no longer saves to disk, as templates are mostly useful in playbooks and this allows lots of simplifications 2012-07-14 11:59:12 -04:00
file whitespace + remove deprecated YAML parser (migration script lives in examples/scripts and warning was added 2012-08-06 20:07:02 -04:00
get_url whitespace + remove deprecated YAML parser (migration script lives in examples/scripts and warning was added 2012-08-06 20:07:02 -04:00
git Fix error handling when switching versions 2012-08-07 11:20:14 -07:00
group whitespace + remove deprecated YAML parser (migration script lives in examples/scripts and warning was added 2012-08-06 20:07:02 -04:00
mount whitespace + remove deprecated YAML parser (migration script lives in examples/scripts and warning was added 2012-08-06 20:07:02 -04:00
mysql_db Added login_unix_socket option to mysql_db module 2012-08-03 12:34:55 +02:00
mysql_user Added login_unix_socket option to mysql_user module 2012-08-03 12:35:18 +02:00
ohai Add encoding lines to python modules such that they can take unicode options if they are fed them, since the 2012-08-02 21:29:10 -04:00
ping Add encoding lines to python modules such that they can take unicode options if they are fed them, since the 2012-08-02 21:29:10 -04:00
postgresql_db Add encoding lines to python modules such that they can take unicode options if they are fed them, since the 2012-08-02 21:29:10 -04:00
postgresql_user Add encoding lines to python modules such that they can take unicode options if they are fed them, since the 2012-08-02 21:29:10 -04:00
raw Setup module no longer saves to disk, as templates are mostly useful in playbooks and this allows lots of simplifications 2012-07-14 11:59:12 -04:00
service whitespace + remove deprecated YAML parser (migration script lives in examples/scripts and warning was added 2012-08-06 20:07:02 -04:00
setup whitespace + remove deprecated YAML parser (migration script lives in examples/scripts and warning was added 2012-08-06 20:07:02 -04:00
shell whitespace + remove deprecated YAML parser (migration script lives in examples/scripts and warning was added 2012-08-06 20:07:02 -04:00
slurp Add encoding lines to python modules such that they can take unicode options if they are fed them, since the 2012-08-02 21:29:10 -04:00
template Setup module no longer saves to disk, as templates are mostly useful in playbooks and this allows lots of simplifications 2012-07-14 11:59:12 -04:00
user Add encoding lines to python modules such that they can take unicode options if they are fed them, since the 2012-08-02 21:29:10 -04:00
virt whitespace + remove deprecated YAML parser (migration script lives in examples/scripts and warning was added 2012-08-06 20:07:02 -04:00
yum whitespace + remove deprecated YAML parser (migration script lives in examples/scripts and warning was added 2012-08-06 20:07:02 -04:00