Skip to content

Commit

Permalink
Fix type error in _customization_sso
Browse files Browse the repository at this point in the history
Fixes below error:

  File "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt-engine-grafana-dwh/core/config.py", line 224, in _customization_sso
    f.write(res)
  TypeError: a bytes-like object is required, not 'str'

Signed-off-by: Martin Perina <mperina@redhat.com>
  • Loading branch information
mwperina authored and mrkev-gh committed Aug 31, 2022
1 parent f9ed9c9 commit 40b2df1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def _customization_sso(self):
prompt=True,
default=True,
)
with open(tmpconf, 'wb') as f:
with open(tmpconf, 'w') as f:
f.write(res)
self._process_sso_client_registration_result(tmpconf)

Expand Down

0 comments on commit 40b2df1

Please sign in to comment.