vm_shepherd 1.12.4 → 1.12.5

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: b77d6188d98b7db80cb5aa09a5d93badbb463c02
4
- data.tar.gz: a7a559e2ee41523aaa0940ef7de1dd1ea335f284
3
+ metadata.gz: 92433e37c8337740da8cd637ef6230d20bed0672
4
+ data.tar.gz: 87007175ead54bfecab3cbe776e174494a1ab4b4
5
5
  SHA512:
6
- metadata.gz: 460698cd40f95471ebe8ff072ff6b0d5f570c831b223e20ff121c4f9f2afcb5afd1523bd336dce1cbb667d05b40b7658ac52a40674794c85d74c0c7923dd65b0
7
- data.tar.gz: 7432d12977fbd3017af4610311b1ed2a9f186f5b650bb7194df633fb0557bd8e87bc85d448f6022bf0641eaec0fad9a8eaaee025aed6138098524be49e83ca22
6
+ metadata.gz: 4a48a5f18844c18930b9b7fc7a38db0d39872474a5da48d7fd9c0e74432d256354027b05302a6beb3de755c7e4f92205c388c4a777542ca41e6ae5b7b4b92734
7
+ data.tar.gz: f1612280308a0f8eaadd4bb29d9fe99884a9eeb547bafa1c73367945ca055e2490e81e31bbe28bd97b58caf372825819280bf1bfd7f03bba361e07d069e27bff
@@ -1,3 +1,3 @@
1
1
  module VmShepherd
2
- VERSION = '1.12.4'.freeze
2
+ VERSION = '1.12.5'.freeze
3
3
  end
@@ -88,7 +88,7 @@ module VmShepherd
88
88
  def ensure_no_running_vm(vm_config)
89
89
  ip_port = "#{vm_config.fetch(:ip)} #{vm_config.fetch(:external_port, 443)}"
90
90
  logger.info("BEGIN checking for VM at #{ip_port}")
91
- fail("VM exists at #{ip_port}") if system("nc -z -G 5 #{ip_port}")
91
+ fail("VM exists at #{ip_port}") if system("nc -z -w 1 #{ip_port}")
92
92
  logger.info("END checking for VM at #{ip_port}")
93
93
  end
94
94
 
@@ -98,7 +98,7 @@ module VmShepherd
98
98
 
99
99
  untar_dir = Dir.mktmpdir
100
100
 
101
- system("cd #{untar_dir} && tar xfv '#{ova_path}'") || fail("ERROR: Untarring #{ova_path}")
101
+ system("cd #{untar_dir} && tar xfv '#{ova_path}'") || fail("ERROR: Untar'ing #{ova_path}")
102
102
 
103
103
  Dir["#{untar_dir}/*.ovf"].first.tap { logger.info("END extract_ovf_from #{ova_path}") } ||
104
104
  fail('Failed to find ovf')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vm_shepherd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.4
4
+ version: 1.12.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ops Manager Team