manageiq-smartstate 0.1.3 → 0.1.4

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: 440961abf4d2b73adb7b0f459afa62e1d367eb82
4
- data.tar.gz: e41b5ed2da90f269b303fcb1a5b56df012f32088
3
+ metadata.gz: e7517619212a1f03fe002e07ba30b6b9200d0ee0
4
+ data.tar.gz: 2b3f9a8d7e73784afff2d978b0529d10a58f71ac
5
5
  SHA512:
6
- metadata.gz: a457a91e0cda2e54b9b352512062999f12fd0a049cb055692e608520820fbe22e3189b91299edefcabf5d95bccc623662ce946fd333e1dc68659b4b5f1340497
7
- data.tar.gz: 8187dbd78395beab1cb7ba6533cb7cbf36d9abc7391cd4333e8a2956bf31b394f7b87b022d2647dd8e9b2a66c121438247cf9b937115536eb2ee1234e2477acb
6
+ metadata.gz: 1eaf8995f28876c937a0ec6c589724ce274fbf3db0201b13400f60c811b1f315f6fc0be362930527feb679802fc4b5ba34d55035fab13e28da693d987e003d1b
7
+ data.tar.gz: 427440dc548f556aa9e113773c235dbe73ea68e6a2428868f170b2b5d1b67a0310e5cd23906ea101da8e5ab351bc63a7b9c5c4c8f4f0a39a427359b159847471
@@ -15,7 +15,7 @@ class MiqAzureVm < MiqVm
15
15
  if args[:image_uri]
16
16
  @uri = args[:image_uri]
17
17
  elsif args[:resource_group] && args[:name]
18
- vm_obj = vm_svc.get(@name, args[:resource_group])
18
+ vm_obj = vm_svc.get(@name, @resource_group.name)
19
19
  os_disk = vm_obj.properties.storage_profile.os_disk
20
20
  if vm_obj.managed_disk?
21
21
  #
@@ -24,9 +24,10 @@ class MiqAzureVm < MiqVm
24
24
  @snap_name = os_disk.name + "__EVM__SSA__SNAPSHOT"
25
25
  else
26
26
  #
27
- # Non-Managed Disk Snapshot handling will be added here by a separate PR.
27
+ # Non-Managed Disk Snapshot handling
28
28
  #
29
29
  @uri = os_disk.vhd.uri
30
+ @uri << "?snapshot=#{args[:snapshot]}" if args[:snapshot]
30
31
  end
31
32
  else
32
33
  raise ArgumentError, "MiqAzureVm: missing required args: :image_uri or :resource_group"
@@ -101,7 +102,7 @@ class MiqAzureVm < MiqVm
101
102
  disk_format = @vmConfig.getHash["#{disk_tag}.format"]
102
103
  disk_info.format = disk_format unless disk_format.blank?
103
104
  disk_info.rawDisk = true
104
- disk_info.resource_group = @resource_group
105
+ disk_info.resource_group = @resource_group.name
105
106
  disk_info
106
107
  end
107
108
 
@@ -1,5 +1,5 @@
1
1
  module ManageIQ
2
2
  module Smartstate
3
- VERSION = "0.1.3".freeze
3
+ VERSION = "0.1.4".freeze
4
4
  end
5
5
  end
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.add_dependency "linux_block_device", "~>0.2.1"
27
27
  spec.add_dependency "memory_buffer", ">=0.1.0"
28
28
  spec.add_dependency "rufus-lru", "~>1.0.3"
29
- spec.add_dependency "vmware_web_service", "~>0.1.1"
29
+ spec.add_dependency "vmware_web_service", "~>0.2.0"
30
30
 
31
31
  spec.add_development_dependency "bundler"
32
32
  spec.add_development_dependency "rake"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manageiq-smartstate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Developers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-05 00:00:00.000000000 Z
11
+ date: 2017-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: azure-armrest
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.1.1
103
+ version: 0.2.0
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.1.1
110
+ version: 0.2.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: bundler
113
113
  requirement: !ruby/object:Gem::Requirement