Skip to content

utils: use CloudifyClient #861

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://github.com/cloudify-cosmo/cloudify-common/archive/master.zip
https://github.com/cloudify-cosmo/cloudify-common/archive/restclient-asyncclient-1.zip