diff options
author | Chris Lumens <clumens@redhat.com> | 2008-03-28 13:10:44 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2008-03-28 13:10:44 -0400 |
commit | 5b54b6803bdd49c13f7392d0e7282ac36a555f16 (patch) | |
tree | 9e9d83e6a97abc7543c2d61b3e79aadcdd05b113 | |
parent | a39f8937968c5a3e030807dc4827bb4fb5dad136 (diff) | |
download | anaconda-5b54b6803bdd49c13f7392d0e7282ac36a555f16.tar.gz anaconda-5b54b6803bdd49c13f7392d0e7282ac36a555f16.tar.xz anaconda-5b54b6803bdd49c13f7392d0e7282ac36a555f16.zip |
Don't pass None as stdout or stderr.
-rw-r--r-- | firewall.py | 3 | ||||
-rw-r--r-- | instdata.py | 2 | ||||
-rw-r--r-- | packages.py | 2 | ||||
-rw-r--r-- | security.py | 4 |
4 files changed, 6 insertions, 5 deletions
diff --git a/firewall.py b/firewall.py index 87c036c63..8f870c91c 100644 --- a/firewall.py +++ b/firewall.py @@ -68,7 +68,8 @@ class Firewall: try: if not flags.test: iutil.execWithRedirect("/usr/sbin/lokkit", args, - root=instPath, stdout=None, stderr=None) + root=instPath, stdout="/dev/null", + stderr="/dev/null") else: log.error("would have run %s", args) except RuntimeError, msg: diff --git a/instdata.py b/instdata.py index d66757f59..1ae678855 100644 --- a/instdata.py +++ b/instdata.py @@ -173,7 +173,7 @@ class InstallData: try: if not flags.test: iutil.execWithRedirect("/usr/sbin/authconfig", args, - stdout = None, stderr = None, + stdout = "/dev/tty5", stderr = "/dev/tty5", root = self.anaconda.rootPath) else: log.error("Would have run: %s", args) diff --git a/packages.py b/packages.py index c4b22fcd3..b52580886 100644 --- a/packages.py +++ b/packages.py @@ -322,7 +322,7 @@ def recreateInitrd (kernelTag, instRoot): log.info("recreating initrd for %s" % (kernelTag,)) iutil.execWithRedirect("/sbin/new-kernel-pkg", [ "--mkinitrd", "--depmod", "--install", kernelTag ], - stdout = None, stderr = None, + stdout = "/dev/null", stderr = "/dev/null", searchPath = 1, root = instRoot) def regKeyScreen(anaconda): diff --git a/security.py b/security.py index 5de3c0673..7a76364a5 100644 --- a/security.py +++ b/security.py @@ -67,8 +67,8 @@ class Security: try: if not flags.test: iutil.execWithRedirect("/usr/sbin/lokkit", args, - root = instPath, stdout = None, - stderr = None) + root = instPath, stdout = "/dev/null", + stderr = "/dev/null") else: log.info("would have run %s" %(args,)) except RuntimeError, msg: |