Skip to content

Commit

Permalink
Enabling ssh-key support for those who place their public key in knif…
Browse files Browse the repository at this point in the history
…e.rb
  • Loading branch information
bigfleet authored and danielsdeleo committed Nov 8, 2010
1 parent cf950cc commit 97cb38e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chef/lib/chef/knife/bluebox_server_create.rb
Expand Up @@ -44,12 +44,11 @@ class BlueboxServerCreate < Knife
:default => "deploy"

option :password,
:short => "-K KEY",
:short => "-P password",
:long => "--password password",
:description => "User password on new server",
:default => ""


def h
@highline ||= HighLine.new
end
Expand All @@ -73,7 +72,8 @@ def run
:flavor_id => config[:flavor],
:image_id => config[:image],
:user => config[:username],
:password => config[:password]
:password => config[:password],
:ssh_key => Chef::Config[:knife][:ssh_key]
)
response = server.save
$stdout.sync = true
Expand Down

0 comments on commit 97cb38e

Please sign in to comment.