Skip to content

Commit

Permalink
Fixes metadata format for 'ssh-keys' key
Browse files Browse the repository at this point in the history
  • Loading branch information
kgaikwad committed Apr 15, 2019
1 parent 83db5d9 commit f2998e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fog/compute/google/models/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ def generate_ssh_key_metadata(username, key)

ssh_keys = metadata_map["ssh-keys"] || metadata_map["sshKeys"] || ""
ssh_keys += "\n" unless ssh_keys.empty?
ssh_keys += "#{username}:#{key.strip}"
ssh_keys += "#{username}:#{key.strip} #{username}"

metadata_map["ssh-keys"] = ssh_keys
metadata[:items] = metadata_to_item_list(metadata_map)
Expand Down

0 comments on commit f2998e6

Please sign in to comment.