knife-xapi 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -77,7 +77,7 @@ class Chef::Knife
77
77
  password = Chef::Config[:knife][:xenserver_password] || nil
78
78
  username = Chef::Config[:knife][:xenserver_username] || "root"
79
79
  if password.nil? or password.empty?
80
- password = ask("Enter password for user #{username}: " ) { |input| input.echo = "*" }
80
+ password = h.ask("Enter password for user #{username}: " ) { |input| input.echo = "*" }
81
81
  end
82
82
  session.login_with_password(username, password)
83
83
 
@@ -322,6 +322,7 @@ class Chef
322
322
 
323
323
 
324
324
  begin
325
+ server_name << ".#{domainname}" unless domainname.empty?
325
326
  bootstrap = Chef::Knife::Bootstrap.new
326
327
  bootstrap.name_args = [ guest_addr ]
327
328
  bootstrap.config[:run_list] = config[:run_list]
@@ -1,3 +1,3 @@
1
1
  module KnifeXenserver
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-xapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
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: 2012-05-25 00:00:00.000000000 Z
12
+ date: 2012-05-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chef