clc-chef-metal-vsphere 0.3.7 → 0.3.8

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
  SHA1:
3
- metadata.gz: 4bae3066ffaa6c846668d54f72ff4c24f4f7488f
4
- data.tar.gz: cc7e238a302925336a2c2a86e51b7e3bc183bc6f
3
+ metadata.gz: f36ee26e31694ea8ca82d5c5fcc8443af53c3448
4
+ data.tar.gz: d86c537c64f0bd2b20722dcfc3b90c9a3561561b
5
5
  SHA512:
6
- metadata.gz: 4d1e3b6f90a4a26d6438bccc1b3c9cbe5096e8096cb08ebf998d87fa85a9d37f4478c9473b9cd7caddb4530f7a9e21e2a6c337f26ec1b6f37fc123913522e032
7
- data.tar.gz: 3b90c6db293e5902110b302d395c0abfd35fb2df4373fae45e64e8f6903eb0ab42dcc9687604b4ea7da9e9836c127382f5466abb6780d6b3933f2ea04ee478ce
6
+ metadata.gz: b18e932b16335e16ac56d443ee93c6dc4347ad6e92c29ad2756daf31393e9800d9d95c5a19622f20030c8031a377b62ebd0a8c6f07384e85e64b98f6915188ef
7
+ data.tar.gz: 90db4b3805b5331ac8d6ec6d6662fdcad07dde1fde1fdb1b83e8e5028ca67008add7fc7a7f34991b81ba15da1a2a9e13d4a187b494e83a1363574633c6f8114b
@@ -1,3 +1,3 @@
1
1
  module ChefMetalVsphere
2
- VERSION = '0.3.7'
2
+ VERSION = '0.3.8'
3
3
  end
@@ -244,7 +244,11 @@ module ChefMetalVsphere
244
244
  machine = machine_for(machine_spec, machine_options, vm)
245
245
 
246
246
  if is_static
247
- if machine.execute_always('host google.com').exitstatus != 0
247
+ host_lookup = machine.execute_always('host google.com')
248
+ if host_lookup.exitstatus != 0
249
+ if host_lookup.stdout.include?("setlocale: LC_ALL")
250
+ machine.execute_always('dpkg-reconfigure locales')
251
+ end
248
252
  distro = machine.execute_always("lsb_release -i | sed -e 's/Distributor ID://g'").stdout.strip
249
253
  Chef::Log.info "Found distro:#{distro}"
250
254
  if distro == 'Ubuntu'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clc-chef-metal-vsphere
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - CenturyLink Cloud