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/02 13:55:16 UTC
[incubator-datalab] 02/02: [DATALAB-1408]: added custom tag to hdinsight
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 <fr...@gmail.com>
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: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org