You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by lf...@apache.org on 2022/09/01 07:11:39 UTC
[incubator-datalab] 10/36: modify func add self=
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 189d2c0c4e8c317cf6525f024a8de9246111b3dc
Author: orepnikov <60...@users.noreply.github.com>
AuthorDate: Wed May 25 17:01:36 2022 +0300
modify func add self=
---
infrastructure-provisioning/src/general/lib/azure/actions_lib.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/infrastructure-provisioning/src/general/lib/azure/actions_lib.py b/infrastructure-provisioning/src/general/lib/azure/actions_lib.py
index d7b89f8ab..cac66816b 100644
--- a/infrastructure-provisioning/src/general/lib/azure/actions_lib.py
+++ b/infrastructure-provisioning/src/general/lib/azure/actions_lib.py
@@ -1501,9 +1501,9 @@ def find_des_jars(all_jars, des_path):
print('Error:', str(err))
sys.exit(1)
-def create_hdinsight_cluster(self, resource_group_name, instance_name, cluster_parameters):
+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 +1519,7 @@ def create_hdinsight_cluster(self, resource_group_name, instance_name, cluster_p
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: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org