This is an automated email from the ASF dual-hosted git repository. lfrolov pushed a commit to branch DATALAB-1408 in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
commit dddfd288dad64eadad756f65198df518ce875639 Author: orepnikov <[email protected]> AuthorDate: Wed May 25 17:19:29 2022 +0300 add import self and add self to func --- infrastructure-provisioning/src/general/lib/azure/actions_lib.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/infrastructure-provisioning/src/general/lib/azure/actions_lib.py b/infrastructure-provisioning/src/general/lib/azure/actions_lib.py index 8f0d31750..05d755d0c 100644 --- a/infrastructure-provisioning/src/general/lib/azure/actions_lib.py +++ b/infrastructure-provisioning/src/general/lib/azure/actions_lib.py @@ -31,6 +31,8 @@ import os import sys import time import traceback + +import self as self import urllib3 import urllib.request import subprocess @@ -1503,7 +1505,7 @@ def find_des_jars(all_jars, des_path): def create_hdinsight_cluster(resource_group_name, instance_name, cluster_parameters): try: - client_1 = AzureActions.__init__().hdinsight_client + client_1 = AzureActions.__init__(self).hdinsight_client print('Starting to create HDInsight Spark cluster {}'.format('hdinsight')) result = client_1.clusters.begin_create(resource_group_name, instance_name, cluster_parameters) @@ -1519,7 +1521,7 @@ def create_hdinsight_cluster(resource_group_name, instance_name, cluster_paramet def terminate_hdinsight_cluster(resource_group_name, instance_name, cluster_parameters): try: - client_1 = AzureActions.__init__().hdinsight_client + client_1 = AzureActions.__init__(self).hdinsight_client client_1.clusters.begin_delete(resource_group_name, instance_name, cluster_parameters) except Exception as err: --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
