opennebula 5.4.8 → 5.4.9

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
  SHA1:
3
- metadata.gz: 830281253aac891f8e4845622bc3ee1fade0fb2c
4
- data.tar.gz: 3b0569067d75198ce34cbbd2c59b4eebd36f5628
3
+ metadata.gz: 418c3e7bdc9f51b56b3f276ccd9c486df215351f
4
+ data.tar.gz: c235d6cf316a190779746532aff3cc79d08d2179
5
5
  SHA512:
6
- metadata.gz: 8dc7baa3574245fa03b0bda19ed93327b19d5179fcd56d8bf28bd749c69ce3aa345838eb38f079f0e2c11ba7cd1b0f476a007caeb4d9f3844889cb0cdb11ce06
7
- data.tar.gz: 1f306a8cdeaaa186e0cd56131ab7716b53154b1759a7fc90cf4c6c7434f87aac773968cb45ff9098cf6938197c3bf9d1df2e5315f6354de2de0e4d154559cbd1
6
+ metadata.gz: 9542f611ed41e08af6eaae7a6845b61c5c6d8523d3c7b1ea36775f3ff40334851fd629491b848f4a795a4719eee2e28b56d5f9be9318ff840d5876597affd320
7
+ data.tar.gz: 3b3a32d637d906184830dcfa7f43df49b0db374cd29b279666ba5f6849ca517c2f20fdb0b3de21d86bb454dc78630dc0e14d0dfc760bc25e1b3eab75b8ff1ea6
@@ -50,7 +50,7 @@ end
50
50
  module CloudClient
51
51
 
52
52
  # OpenNebula version
53
- VERSION = '5.4.8'
53
+ VERSION = '5.4.9'
54
54
 
55
55
  # #########################################################################
56
56
  # Default location for the authentication file
data/lib/opennebula.rb CHANGED
@@ -69,5 +69,5 @@ require 'opennebula/vm_group_pool'
69
69
  module OpenNebula
70
70
 
71
71
  # OpenNebula version
72
- VERSION = '5.4.8'
72
+ VERSION = '5.4.9'
73
73
  end
@@ -333,6 +333,10 @@ module Service
333
333
  end
334
334
  end
335
335
 
336
+ def set_content_type(content_type)
337
+ @content_type = content_type
338
+ end
339
+
336
340
  def get(path)
337
341
  req = Net::HTTP::Proxy(@host, @port)::Get.new(path)
338
342
 
@@ -349,6 +353,11 @@ module Service
349
353
  req = Net::HTTP::Proxy(@host, @port)::Post.new(path)
350
354
  req.body = body
351
355
 
356
+ if path.start_with?('/service_template')
357
+ unless @content_type.nil?
358
+ req.content_type = @content_type
359
+ end
360
+ end
352
361
  do_request(req)
353
362
  end
354
363
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opennebula
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.4.8
4
+ version: 5.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenNebula
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-25 00:00:00.000000000 Z
11
+ date: 2018-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri