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 2035ec488d712166807279174e2225ce716dbc38
Author: leonidfrolov <[email protected]>
AuthorDate: Fri Sep 2 16:55:04 2022 +0300

    [DATALAB-1408]: added custom tag to hdinsight
---
 .../src/general/scripts/azure/dataengine-service_prepare.py           | 4 ++++
 1 file changed, 4 insertions(+)

diff --git 
a/infrastructure-provisioning/src/general/scripts/azure/dataengine-service_prepare.py
 
b/infrastructure-provisioning/src/general/scripts/azure/dataengine-service_prepare.py
index 0dec95979..64b5a2857 100644
--- 
a/infrastructure-provisioning/src/general/scripts/azure/dataengine-service_prepare.py
+++ 
b/infrastructure-provisioning/src/general/scripts/azure/dataengine-service_prepare.py
@@ -77,6 +77,10 @@ if __name__ == "__main__":
             "endpoint": hdinsight_conf['endpoint_name']
         }
 
+        hdinsight_conf['custom_tag'] = 
json.loads(os.environ['tags'].replace("'", '"'))['custom_tag']
+        if hdinsight_conf['custom_tag']:
+            hdinsight_conf['cluster_tags']['custom_tag'] = 
hdinsight_conf['custom_tag']
+
         hdinsight_conf['release_label'] = os.environ['azure_hdinsight_version']
         key = RSA.importKey(open(hdinsight_conf['key_path'], 'rb').read())
         ssh_admin_pubkey = key.publickey().exportKey("OpenSSH").decode('UTF-8')


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to