Operations using the REST client on Python 2.6 may fail

Description

Customer has an agent_host operation that uses the Cloudify REST API to get a node.

This ends up here: https://github.com/cloudify-cosmo/cloudify-rest-client/blob/3.4.2/cloudify_rest_client/nodes.py#L186

We're passing node_id to the list function, which results in a DeprecationWarning being thrown.

On Python 2.7, an exception isn't being raised (DeprecationWarning is ignored by default).
On Python 2.6, this causes an exception to be raised and the operation fails.

Status

Assignee

Unassigned

Reporter

Isaac Shabtay

Bug Type

None

Target Version

None

Severity

None

Fix versions

Affects versions

Configure