fog-ovirt 1.0.2 → 1.0.3

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: bd8e9f9e8c862d91460d0f89a404e63f1a9aa22d
4
- data.tar.gz: 30b9ad6857bd86479b48ee066fa8a3c1939f9722
3
+ metadata.gz: 231279bba2577e46d1eaebb4707b5fbeda1237de
4
+ data.tar.gz: 1d2a2562c87a264601c73f99b86d592770e3bfca
5
5
  SHA512:
6
- metadata.gz: '09bed3bc7ff912ab77167c48e69e2339b1d91c071ef5e410f87573ef9908e81cf53e6159bcd3b89484d22fdb969fc14b97ec83b713560ab7af14b8d268f8666f'
7
- data.tar.gz: 3da84bbfa399997f07670f183dcb6ed8c6451078735eca74bddfe9a14a5d2bfe99095fbad6a0d4dfbc7f275c63b489ad7546f2a2e003d15c7afa44babc5294c9
6
+ metadata.gz: 1adc82676c9e21ca1d7a545613357b4ab51eae18aa40dfa57c6f31637344f6f845c44d78fb917ceb340f8805474bf3c6567b9f94101012e02791c8678b93c37b
7
+ data.tar.gz: 6dc5a477f43f45ba167ddafe3787b4806a5d77ea31a74367810daebfbc8c0244127f47831f6d6e935807321228a757673cb2f9aaf7bd2b4d05308b90e2088259
@@ -150,7 +150,7 @@ module Fog
150
150
  end
151
151
 
152
152
  def datacenter
153
- @datacenter ||= datacenters.first.id
153
+ @datacenter ||= datacenters.first[:id]
154
154
  end
155
155
 
156
156
  private
@@ -41,6 +41,11 @@ module Fog
41
41
  attrs[:comment] ||= ""
42
42
  attrs[:quota] = attrs[:quota].present? ? client.system_service.data_centers_service.data_center_service(datacenter).quotas_service.quota_service(attrs[:quota]).get : nil
43
43
 
44
+ if attrs[:cores].present?
45
+ cpu_topology = OvirtSDK4::CpuTopology.new(:cores => attrs[:cores], :sockets => "1")
46
+ attrs[:cpu] = OvirtSDK4::Cpu.new(:topology => cpu_topology)
47
+ end
48
+
44
49
  # TODO: handle cloning from template
45
50
  process_vm_opts(attrs)
46
51
 
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Ovirt
3
- VERSION = "1.0.2".freeze
3
+ VERSION = "1.0.3".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-ovirt
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ori Rabin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-04 00:00:00.000000000 Z
11
+ date: 2018-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-core
@@ -353,7 +353,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
353
353
  version: '0'
354
354
  requirements: []
355
355
  rubyforge_project:
356
- rubygems_version: 2.6.12
356
+ rubygems_version: 2.6.14
357
357
  signing_key:
358
358
  specification_version: 4
359
359
  summary: Module for the 'fog' gem to support Ovirt.