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 +4 -4
- data/lib/cloud/CloudClient.rb +1 -1
- data/lib/opennebula.rb +1 -1
- data/lib/opennebula/oneflow_client.rb +9 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 418c3e7bdc9f51b56b3f276ccd9c486df215351f
|
4
|
+
data.tar.gz: c235d6cf316a190779746532aff3cc79d08d2179
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9542f611ed41e08af6eaae7a6845b61c5c6d8523d3c7b1ea36775f3ff40334851fd629491b848f4a795a4719eee2e28b56d5f9be9318ff840d5876597affd320
|
7
|
+
data.tar.gz: 3b3a32d637d906184830dcfa7f43df49b0db374cd29b279666ba5f6849ca517c2f20fdb0b3de21d86bb454dc78630dc0e14d0dfc760bc25e1b3eab75b8ff1ea6
|
data/lib/cloud/CloudClient.rb
CHANGED
data/lib/opennebula.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2018-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|