mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Various cleanup to run_command
* Rename fail_on_rc_non_zero to check_rc, much more succinct. * Simplify method defintion * Fix command module and drop shell=shell option; whether to use shell is determined by if args is a list.
This commit is contained in:
@@ -85,7 +85,7 @@ class Subversion(object):
|
||||
if self.password:
|
||||
bits.append("--password '%s'" % self.password)
|
||||
bits.append(args)
|
||||
rc, out, err = self.module.run_command(' '.join(bits), fail_on_rc_non_zero=True)
|
||||
rc, out, err = self.module.run_command(' '.join(bits), check_rc=True)
|
||||
return out.splitlines()
|
||||
|
||||
def checkout(self):
|
||||
|
||||
Reference in New Issue
Block a user