opennebula 5.11.80.pre → 5.11.85.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/OpenNebulaDriver.rb +1 -1
- data/lib/cloud/CloudClient.rb +1 -1
- data/lib/opennebula.rb +1 -1
- data/lib/opennebula/host.rb +2 -1
- data/lib/opennebula/ldap_auth.rb +10 -6
- data/lib/opennebula/marketplaceapp.rb +3 -2
- 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: f7c0463980bb481a313fecfe5d21893587dfddcb
|
4
|
+
data.tar.gz: f73c74b057353fa3bd81e33271f51ad7093fb2e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f940626641eea5bb9d66aa1b5aa45a89b9c6e870173104308a30e53c52eed979777978acb23dd0094b746f7dbca26a59b4dd3a4fba1a0b930ec54969852e2c5e
|
7
|
+
data.tar.gz: 17f00e8678bca2183a3f897ff3705220cc5d8bc8ba5b36955fc85f081b0aeac11bfda3abeba6f0da68bd0539da7222205bffa3b4e2043ef723bae706a2e0b65c
|
data/lib/OpenNebulaDriver.rb
CHANGED
@@ -97,7 +97,7 @@ class OpenNebulaDriver < ActionManager
|
|
97
97
|
command = action_command_line(aname, params, options[:script_name])
|
98
98
|
|
99
99
|
if action_is_local?(aname)
|
100
|
-
stdin = Base64.strict_encode64(options[:stdin])
|
100
|
+
stdin = Base64.strict_encode64(options[:stdin].to_s)
|
101
101
|
execution = LocalCommand.run(command,
|
102
102
|
log_method(id),
|
103
103
|
stdin,
|
data/lib/cloud/CloudClient.rb
CHANGED
data/lib/opennebula.rb
CHANGED
data/lib/opennebula/host.rb
CHANGED
@@ -239,7 +239,8 @@ module OpenNebula
|
|
239
239
|
vi_client = VCenterDriver::VIClient.new_from_host(self["ID"])
|
240
240
|
importer = VCenterDriver::VmmImporter.new(@client, vi_client)
|
241
241
|
|
242
|
-
return importer.import({wild: wild, template: template,
|
242
|
+
return importer.import({wild: wild, template: template,
|
243
|
+
one_item: vm, host: self['ID']})
|
243
244
|
else
|
244
245
|
rc = vm.allocate(template)
|
245
246
|
|
data/lib/opennebula/ldap_auth.rb
CHANGED
@@ -64,9 +64,8 @@ class OpenNebula::LdapAuth
|
|
64
64
|
}
|
65
65
|
end
|
66
66
|
|
67
|
-
|
68
|
-
|
69
|
-
end
|
67
|
+
# always fetch user_filed to compare whitespace diff
|
68
|
+
@options[:attributes] << @options[:user_field]
|
70
69
|
|
71
70
|
# fetch the user group field only if we need that
|
72
71
|
if @options[:group] or !@options[:rfc2307bis]
|
@@ -143,15 +142,20 @@ class OpenNebula::LdapAuth
|
|
143
142
|
|
144
143
|
if result && result.first
|
145
144
|
@user = result.first
|
146
|
-
|
145
|
+
|
146
|
+
[@user.dn,
|
147
|
+
@user[@options[:user_field]].first,
|
148
|
+
@user[@options[:user_group_field]]]
|
147
149
|
else
|
148
150
|
result=@ldap.search(:base => name)
|
149
151
|
|
150
152
|
if result && result.first
|
151
153
|
@user = result.first
|
152
|
-
[name,
|
154
|
+
[name,
|
155
|
+
@user[@options[:user_field]].first,
|
156
|
+
@user[@options[:user_group_field]]]
|
153
157
|
else
|
154
|
-
[nil, nil]
|
158
|
+
[nil, nil, nil]
|
155
159
|
end
|
156
160
|
end
|
157
161
|
end
|
@@ -192,8 +192,9 @@ module OpenNebula
|
|
192
192
|
options[:vmtemplate_name] = name unless options[:vmtemplate_name]
|
193
193
|
|
194
194
|
tmpl << "\n"
|
195
|
-
tmpl <<
|
196
|
-
tmpl <<
|
195
|
+
tmpl << 'NAME="' << name << "\"\n"
|
196
|
+
tmpl << 'FROM_APP="' << self['ID'] << "\"\n"
|
197
|
+
tmpl << 'URL_ARGS="' << options[:url_args] << "\"\n" if options[:url_args]
|
197
198
|
|
198
199
|
case type_str
|
199
200
|
when 'IMAGE'
|
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.11.
|
4
|
+
version: 5.11.85.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenNebula
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|