Skip to content

Commit

Permalink
Merge pull request #14797 from lfu/ssh_key_add_template_1436194
Browse files Browse the repository at this point in the history
Use fetch_path to handle the case where :ws_values is nil.
  • Loading branch information
bdunne authored Apr 18, 2017
2 parents 30fc1b9 + fbf87f1 commit 1a4bcfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/fixtures/customization_templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@

- :name: SSH key addition template
:description: This template enables placing ssh public key in authorized keys
:script: "#cloud-config\nusers:\n - name: root\n ssh-authorized-keys:\n - <%= evm[:ws_values][:ssh_public_key] %>"
:script: "#cloud-config\nusers:\n - name: root\n ssh-authorized-keys:\n - <%= evm.fetch_path(:ws_values, :ssh_public_key) %>"
:type: CustomizationTemplateCloudInit
:system: true

Expand Down

0 comments on commit 1a4bcfb

Please sign in to comment.