diff options
-rw-r--r-- | ipalib/plugins/certprofile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/certprofile.py b/ipalib/plugins/certprofile.py index 6329d84c3..224d5cec8 100644 --- a/ipalib/plugins/certprofile.py +++ b/ipalib/plugins/certprofile.py @@ -224,7 +224,7 @@ class certprofile_show(LDAPRetrieve): result = super(certprofile_show, self).forward(*keys, **options) if 'out' in options and 'config' in result['result']: - with open(options['out'], 'w') as f: + with open(options['out'], 'wb') as f: f.write(result['result'].pop('config')) result['summary'] = ( _("Profile configuration stored in file '%(file)s'") |