knife-vsphere 4.1.7 → 4.1.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8ef728753d00bcdd877a55ab41d58ff589c4622d709d29273c871eb62a4b635
4
- data.tar.gz: 4bb5af7041b86d33d8c5ee687bb03c970935177ec2a46edc2b55650a28a2207e
3
+ metadata.gz: 0f1dc216c472e38cc3440f95efbaf1f8c139772b60c64bedbffae096cca623d2
4
+ data.tar.gz: 5b3929bc65961c899be025043bbcec97d6c376388e4e951f8ec504f77f44d369
5
5
  SHA512:
6
- metadata.gz: a6fdc5b8badf253dcecc15212e408c5bb01f4881dd8155e8f587dcbf992bbffcece0876dbafbde67fcf8d60e997f52c7bb6b304505060137501445beaabecaff
7
- data.tar.gz: 481e6a0fa022b8315bd67f2c66c19fde321e20bee6e525e9bfcfc0f0fc2ae71cdedb34e9c57527ec4647cf3be6f5094e49b16ad1f3259d78121ba393421d7b3c
6
+ metadata.gz: d087900222047061ad9e99e6196572c582fe6dd492d29d519395270d38103d01b9d4ebe7b54ede7cc87de72337ec79e788530d8ba54408202a010c6f6fd143ce
7
+ data.tar.gz: 41bff6932e00d31d0a8c41709383a2b9b1996e008430a00214ab484001808e69195e20e4f52f3ac7338b9cd1dc14f4522a1cc362ca5fdf2b701f6ad836370c1f
@@ -122,7 +122,7 @@ class Chef
122
122
  end
123
123
 
124
124
  def get_password_from_stdin
125
- @password ||= ui.ask("Enter your password: ") { |q| q.echo = false }
125
+ @password ||= ui.ask("Enter your password: ") { |q| q.echo(false) }
126
126
  end
127
127
 
128
128
  def traverse_folders_for_pools(folder)
@@ -678,11 +678,7 @@ class Chef::Knife::VsphereVmClone < Chef::Knife::BaseVsphereCommand
678
678
  ident = RbVmomi::VIM.CustomizationLinuxPrep
679
679
  ident.hostName = RbVmomi::VIM.CustomizationFixedName(name: hostname)
680
680
 
681
- ident.domain = if get_config(:customization_domain)
682
- get_config(:customization_domain)
683
- else
684
- ""
685
- end
681
+ ident.domain = (get_config(:customization_domain) || "")
686
682
  cust_spec.identity = ident
687
683
  else
688
684
  ui.error("Customization only supports Linux and Windows currently.")
@@ -216,7 +216,7 @@ class Chef::Knife::VsphereVmVmdkAdd < Chef::Knife::BaseVsphereCommand
216
216
  end
217
217
 
218
218
  # ensure we don't try to add the controllers SCSI ID
219
- new_unit_number = available_unit_numbers.sort[0]
219
+ new_unit_number = available_unit_numbers.min
220
220
  puts "using SCSI ID #{new_unit_number}"
221
221
 
222
222
  vmdk_backing = RbVmomi::VIM::VirtualDiskFlatVer2BackingInfo(
@@ -1,5 +1,5 @@
1
1
  # The main knife-vsphere module.
2
2
  module KnifeVsphere
3
3
  # The version of this gem.
4
- VERSION = "4.1.7".freeze
4
+ VERSION = "4.1.10".freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-vsphere
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.7
4
+ version: 4.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezra Pagel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-21 00:00:00.000000000 Z
11
+ date: 2021-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: netaddr
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
164
  - !ruby/object:Gem::Version
165
165
  version: '0'
166
166
  requirements: []
167
- rubygems_version: 3.0.3
167
+ rubygems_version: 3.1.4
168
168
  signing_key:
169
169
  specification_version: 4
170
170
  summary: VMware vSphere support for Chef Infra's Knife command