Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Commit

Permalink
Quote kubeconfig to prevent certain shells treating it as multiple ar…
Browse files Browse the repository at this point in the history
…guments (#133)
  • Loading branch information
timfpark authored Feb 21, 2019
1 parent e37c914 commit ca52838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cluster/azure/aks/kubeconfig.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ resource "null_resource" "cluster_credentials" {
count = "${var.kubeconfig_to_disk ? 1 : 0}"

provisioner "local-exec" {
command = "if [ ! -e ${var.output_directory} ]; then mkdir -p ${var.output_directory}; fi && echo ${azurerm_kubernetes_cluster.cluster.kube_config_raw} > ${var.output_directory}/${var.kubeconfig_filename}"
command = "if [ ! -e ${var.output_directory} ]; then mkdir -p ${var.output_directory}; fi && echo \"${azurerm_kubernetes_cluster.cluster.kube_config_raw}\" > ${var.output_directory}/${var.kubeconfig_filename}"
}

triggers {
Expand Down

0 comments on commit ca52838

Please sign in to comment.