Skip to content

Commit

Permalink
utils: use CloudifyClient
Browse files Browse the repository at this point in the history
cloudify-cosmo/cloudify-common#1204 removes the ClusterClient, and now
just the regular CloudifyClient handles clusters
  • Loading branch information
tehasdf committed Dec 13, 2022
1 parent 13a286d commit 9de134e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloudify_agent/api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
from jinja2 import Template
from urllib.parse import quote as urlquote

from cloudify.cluster import CloudifyClusterClient
from cloudify.workflows import tasks as workflows_tasks
from cloudify.utils import setup_logger, get_exec_tempdir, ipv6_url_compat
from cloudify.constants import (SECURED_PROTOCOL,
BROKER_PORT_SSL,
BROKER_PORT_NO_SSL)
from cloudify_rest_client.client import CloudifyClient
# imported here for backwards compat
from cloudify.amqp_client import is_agent_alive # noqa

Expand Down Expand Up @@ -448,7 +448,7 @@ def get_rest_client(rest_host,
'create a REST client for a secured ' \
'manager [{1}]'.format(name, rest_host)

return CloudifyClusterClient(
return CloudifyClient(
host=rest_host,
protocol=SECURED_PROTOCOL,
port=rest_port,
Expand Down

0 comments on commit 9de134e

Please sign in to comment.