knife-vsphere 4.0.1 → 4.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chef/knife/vsphere_vm_state.rb +3 -3
- data/lib/knife-vsphere/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ddc2b0d08d80c1066eb2686f6823f2a790367ad8b42798f811187366db05516
|
4
|
+
data.tar.gz: 3c074c7926eb0b2315293a16dca82531b4871350712bcd23f3d9039f98e89f6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6abf7dfb883410dda88d3063909503d3d60899caf7d97be9e9dcac41ea1af0e70a2a1ab4e2afc3645f6623b88b76d2508e33b3170dc96f1846da209a97fcc075
|
7
|
+
data.tar.gz: 445fdc25d6b3778a303cb9113f22d16aeb15cc111b72ecf4612880cd0ef7873c42824ed769bcc0a3562ac108863e55b1a390622777b4ccda8ae3fa38dbdb14c1
|
@@ -25,7 +25,7 @@ class Chef::Knife::VsphereVmState < Chef::Knife::BaseVsphereCommand
|
|
25
25
|
option :state,
|
26
26
|
short: "-s STATE",
|
27
27
|
long: "--state STATE",
|
28
|
-
description: "The power state to transition the VM into; one of on|off|
|
28
|
+
description: "The power state to transition the VM into; one of on|off|suspend|reboot"
|
29
29
|
|
30
30
|
option :wait_port,
|
31
31
|
short: "-w PORT",
|
@@ -89,8 +89,8 @@ class Chef::Knife::VsphereVmState < Chef::Knife::BaseVsphereCommand
|
|
89
89
|
puts "Powered off virtual machine #{vmname}"
|
90
90
|
end
|
91
91
|
end
|
92
|
-
when "suspend"
|
93
|
-
if state ==
|
92
|
+
when "suspend", "suspended"
|
93
|
+
if state == PS_SUSPENDED
|
94
94
|
puts "Virtual machine #{vmname} was already suspended"
|
95
95
|
else
|
96
96
|
vm.SuspendVM_Task.wait_for_completion
|
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.0.
|
4
|
+
version: 4.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ezra Pagel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: netaddr
|