Skip to content

Commit

Permalink
don't to_bytes username and password, it's done for us by the wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Apr 12, 2023
1 parent 3828cef commit caed650
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/module_utils/foreman_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from functools import wraps

from ansible.module_utils.basic import AnsibleModule, missing_required_lib, env_fallback
from ansible.module_utils._text import to_bytes, to_native
from ansible.module_utils._text import to_native
from ansible.module_utils import six
from ansible.module_utils.urls import Request
try:
Expand Down Expand Up @@ -667,8 +667,8 @@ def connect(self):

self.foremanapi = apypie.Api(
uri=self._foremanapi_server_url,
username=to_bytes(self._foremanapi_username),
password=to_bytes(self._foremanapi_password),
username=self._foremanapi_username,
password=self._foremanapi_password,
api_version=2,
verify_ssl=self._foremanapi_validate_certs,
session=RequestSession(),
Expand Down

0 comments on commit caed650

Please sign in to comment.