freeipa/ipaserver
Petr Viktorin 099cf98307 Refactor ipautil.run
The ipautil.run function now returns an object with returncode and
output are accessible as attributes.

The stdout and stderr of all commands are logged (unless skip_output is given).

The stdout/stderr contents must be explicitly requested with a keyword
argument, otherwise they are None.
This is because in Python 3, the output needs to be decoded, and that can
fail if it's not decodable (human-readable) text.

The raw (bytes) output is always available from the result object,
as is "leniently" decoded output suitable for logging.

All calls are changed to reflect this.

A use of Popen in cainstance is changed to ipautil.run.

Reviewed-By: Jan Cholasta <jcholast@redhat.com>
2015-12-14 10:54:23 +01:00
..
advise Migrate wget references and usage to curl 2015-12-11 18:46:10 +01:00
install Refactor ipautil.run 2015-12-14 10:54:23 +01:00
plugins Upgrade: increase time limit for upgrades 2015-12-01 08:51:44 +01:00
__init__.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
dcerpc.py Refactor ipautil.run 2015-12-14 10:54:23 +01:00
rpcserver.py Use six.moves.xmlrpc.client instead of xmlrpclib 2015-10-07 10:27:20 +02:00