vmonkey 0.19.0 → 0.20.0

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: a2b110fd086638f540bd6bed58394f077fe0b2a4
4
- data.tar.gz: 0c2fce73a638b5523b395fcba0889bcc748274f4
3
+ metadata.gz: db1974e7ea19c2601f95522a530c92ccbc99c467
4
+ data.tar.gz: e9fc72a7657ca1527ce6d97c4349d841d66b9d00
5
5
  SHA512:
6
- metadata.gz: 70f58bc71084e7c7c8b47408b39a2f2a4d4dbdc72633999b155171d704431168fce826f7550ecf6f2b74dd469239cf5c58586b29c68e21e7381a70160422a4e3
7
- data.tar.gz: 5be6a3b6408f01c3f02d7de89fa5a6f44e248a644c042386bc2ab2b95d098e1377bc0dde96363a9deb4728064a9d9c591a7ad2fda4435471ea1d9adebabec91f
6
+ metadata.gz: 40055176c611003390d2568ef57d641e2b87dc53b9e7c3757885dcb2f8514e6225f1167e98688886ca723b0842ea72033431f3207d58e249e705eebc2b16709b
7
+ data.tar.gz: e961f6b59478ff4ee2a7bbc92832fe5c4c41c0352ff5d4a3d3445ee54c5813028fd2511efbd04617e8aee045a194e7dc4a38024b53417a5d9452dacd8e0cddf7
@@ -1,3 +1,3 @@
1
1
  module Vmonkey
2
- VERSION = '0.19.0'
2
+ VERSION = '0.20.0'
3
3
  end
@@ -259,7 +259,10 @@ class RbVmomi::VIM::VirtualMachine
259
259
  opts[:config] ||= {}
260
260
 
261
261
  clone_spec = RbVmomi::VIM.VirtualMachineCloneSpec(
262
- location: RbVmomi::VIM.VirtualMachineRelocateSpec(pool: dest.vm_pool),
262
+ location: RbVmomi::VIM.VirtualMachineRelocateSpec({
263
+ pool: dest.vm_pool,
264
+ datastore: opts[:datastore]
265
+ }),
263
266
  powerOn: false,
264
267
  template: false
265
268
  )
@@ -57,6 +57,18 @@ describe RbVmomi::VIM::VirtualMachine do
57
57
  it { expect(subject[:spec].config.deviceChange.length).to be 0}
58
58
  end
59
59
 
60
+ context 'with datastore change' do
61
+ subject do
62
+ @params ||=
63
+ @template._clone_params(
64
+ @vm_path.basename,
65
+ @monkey.get(@vm_path.parent),
66
+ datastore: @monkey.datastore(VM_SPEC_OPTS[:datastore]))
67
+ end
68
+
69
+ it { expect(subject[:spec][:location].datastore).to_not be_nil }
70
+ end
71
+
60
72
  context 'with deviceChange' do
61
73
  subject do
62
74
  @params ||=
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vmonkey
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0
4
+ version: 0.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Dupras
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-02-17 00:00:00.000000000 Z
13
+ date: 2015-02-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: nokogiri