knife-vsphere 4.0.1 → 4.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a8f368d4573e232a6f85d7b21aa08ebfe1402874def28c7ef02dbd424d2b925e
4
- data.tar.gz: 6431989292639804374815f7b3b3f232e708901f8e51b02ac24c18d88edef8e4
3
+ metadata.gz: 7ddc2b0d08d80c1066eb2686f6823f2a790367ad8b42798f811187366db05516
4
+ data.tar.gz: 3c074c7926eb0b2315293a16dca82531b4871350712bcd23f3d9039f98e89f6e
5
5
  SHA512:
6
- metadata.gz: 2bbd470a6557c299d64459d8d9d557280851bff0093d37c9dad63c30625b412ec3edc863c695860b84fafffebd9312711b343afa07d3dfdf735f3cbf4a36ef96
7
- data.tar.gz: 51e6cdedd5efd0bdf9dcf74ffc8570e81beb69b3d3d7967ca31daa239626b1bf5b35681c423e53a2b96ade0e1ea0ba266340ca0f133f9a01520781168bacfae3
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|suspended|reboot"
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 == POWER_STATES["suspended"]
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
@@ -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.0.1".freeze
4
+ VERSION = "4.0.3".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.0.1
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-08-23 00:00:00.000000000 Z
11
+ date: 2019-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: netaddr