+++ This bug was initially created as a clone of Bug #1197656 +++
Description of problem:
There is no way to Refresh host capabilities via Python-SDK
The only way to Refresh host capabilities is via url ovirt-engine/api/hosts/<HOST_ID>;force
Version-Release number of selected component (if applicable):
Steps to Reproduce:
API = API(url=URL, username=USERNAME, password=PASSWORD, insecure=True)
HOST = API.hosts.get(HOSTS)
No Refresh host capabilities under HOST object
Should be Refresh host capabilities under HOST object
--- Additional comment from Juan Hernández on 2015-03-02 05:56:27 EST ---
This happens because currently the generator of the Python SDK ignores any parameter that is passed to the entity resource, it only takes into account the parameters passed to the collection resource.
The right way to solve this issue is to explicitly represent the "refresh host capabilities" action, instead of using the somewhat obscure (and unsupported by the Python SDK) "force" matrix parameter of the GET method. Once this is implemented in the engine the Python SDK will need to be regenerated.
Verified on rhevm-sdk-python.noarch 0:220.127.116.11-0.2.20150406git5290ed3.el7