summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2014-08-01 08:28:18 -0500
committerSol Jerome <sol.jerome@gmail.com>2014-08-01 08:28:18 -0500
commitea634773e876cc054bdc4920567557462baa61a3 (patch)
tree75210b554c3c0d64273104245388826d35678cae
parent8932605192a3d8cad214afd210f6b454d2c012d4 (diff)
downloadbcfg2-ea634773e876cc054bdc4920567557462baa61a3.tar.gz
bcfg2-ea634773e876cc054bdc4920567557462baa61a3.tar.bz2
bcfg2-ea634773e876cc054bdc4920567557462baa61a3.zip
Client: Fix client cache for py3k
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
-rw-r--r--src/lib/Bcfg2/Client/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Client/__init__.py b/src/lib/Bcfg2/Client/__init__.py
index d0a408504..346444b2c 100644
--- a/src/lib/Bcfg2/Client/__init__.py
+++ b/src/lib/Bcfg2/Client/__init__.py
@@ -113,10 +113,10 @@ class Client(object):
help='Force removal of additional configuration items')),
Bcfg2.Options.ExclusiveOptionGroup(
Bcfg2.Options.PathOption(
- '-f', '--file', type=argparse.FileType('r'),
+ '-f', '--file', type=argparse.FileType('rb'),
help='Configure from a file rather than querying the server'),
Bcfg2.Options.PathOption(
- '-c', '--cache', type=argparse.FileType('w'),
+ '-c', '--cache', type=argparse.FileType('wb'),
help='Store the configuration in a file')),
Bcfg2.Options.BooleanOption(
'--exit-on-probe-failure', default=True,