knife-setup 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -187,14 +187,7 @@ class Chef
187
187
  bootstrap_client unless config[:nobootstrap]
188
188
  set_run_list(get_node, config[:run_list]) unless config[:run_list].empty?
189
189
  set_env(get_node, config[:environment]) unless config[:environment] == "_default"
190
-
191
- begin
192
- knife_ssh("chef-client").run
193
- rescue Net::SSH::AuthenticationFailed
194
- puts "Failed to authenticate #{config[:ssh_user]} - trying password auth"
195
- knife_ssh_with_password_auth("chef-client").run
196
- end if config[:norunchef]
197
-
190
+ knife_ssh("chef-client").run if config[:norunchef]
198
191
  post if Chef::Config[:post_url]
199
192
  end
200
193
 
@@ -206,7 +199,7 @@ class Chef
206
199
  end
207
200
 
208
201
  def server_name
209
- if config[:chef_node_name].nil?
202
+ if config[:chef_node_name].empty?
210
203
  Array(@name_args).first
211
204
  else
212
205
  config[:chef_node_name]
@@ -261,4 +254,4 @@ class Chef
261
254
 
262
255
  end
263
256
  end
264
- end
257
+ end
@@ -1,5 +1,5 @@
1
1
  module Knife
2
2
  module Setup
3
- VERSION = "1.0.8"
3
+ VERSION = "1.0.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-setup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-20 00:00:00.000000000 Z
12
+ date: 2013-04-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chef