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 +4 -4
- data/lib/vm_shepherd/version.rb +1 -1
- data/lib/vm_shepherd/vsphere_manager.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92433e37c8337740da8cd637ef6230d20bed0672
|
4
|
+
data.tar.gz: 87007175ead54bfecab3cbe776e174494a1ab4b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a48a5f18844c18930b9b7fc7a38db0d39872474a5da48d7fd9c0e74432d256354027b05302a6beb3de755c7e4f92205c388c4a777542ca41e6ae5b7b4b92734
|
7
|
+
data.tar.gz: f1612280308a0f8eaadd4bb29d9fe99884a9eeb547bafa1c73367945ca055e2490e81e31bbe28bd97b58caf372825819280bf1bfd7f03bba361e07d069e27bff
|
data/lib/vm_shepherd/version.rb
CHANGED
@@ -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 -
|
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:
|
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')
|