On Thu, Sep 17, 2020 at 9:59 AM Ronald Wimmer via FreeIPA-users <
[email protected]> wrote:

> Anyone using freeipa-python here? When I try to use
>
> client.host_mod('myserver.mydomain.at', userclass='SomeUserClass')
>
> the user class is set correctly on the host above but I do get an
> Exception:
>
>    File "./modifyHosts.py", line 34, in <module>
>      client.host_mod('myserver.mydomain.at', userclass='SomeUserClass')
>    File
> "/usr/local/lib/python3.6/site-packages/python_freeipa/client_meta.py",
> line 11192, in host_mod
>      return self._request(method, _args, _params)
>    File
> "/usr/local/lib/python3.6/site-packages/python_freeipa/client.py", line
> 335, in _request
>      parse_error(error)
>    File
> "/usr/local/lib/python3.6/site-packages/python_freeipa/exceptions.py",
> line 117, in parse_error
>      raise exception_class(message, code)
> python_freeipa.exceptions.BadRequest: no modifications to be performed
>

Note, on the last line that the error is "no modifications to be
performed". It used to occur to me when I tried to modify an object (in
this case a "host'), but all attributes already had the same given values.

I'd check if your host isn't already set, with the provided values.

Rafael
-- 
Rafael Guterres Jeffman
Senior Software Engineer
FreeIPA - Red Hat
_______________________________________________
FreeIPA-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedorahosted.org/archives/list/[email protected]

Reply via email to