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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d2d83b29c5331f619c3b5aa1213b82f3e078663
4
- data.tar.gz: bc41b7188c837d471cec3644d6a8aa780b60b4bd
3
+ metadata.gz: f7c0463980bb481a313fecfe5d21893587dfddcb
4
+ data.tar.gz: f73c74b057353fa3bd81e33271f51ad7093fb2e2
5
5
  SHA512:
6
- metadata.gz: c20c193b8023d56b1a5c3d44a1468a0d9c90bc0d4f234f451a6e8f9a1444d0bfc6fc2e85d40763cf82fac95ab833167c03b8f212b81e5feb9a991057e81c9d82
7
- data.tar.gz: 6b57f21dad920d7fe9d159d2cc46d9e55f50b8fbf8063790d2fd48ebbd75d6aade3051f7d0902e40764f95d632b938a2de2ac1058b490c0b290b4d5520fbb6cc
6
+ metadata.gz: f940626641eea5bb9d66aa1b5aa45a89b9c6e870173104308a30e53c52eed979777978acb23dd0094b746f7dbca26a59b4dd3a4fba1a0b930ec54969852e2c5e
7
+ data.tar.gz: 17f00e8678bca2183a3f897ff3705220cc5d8bc8ba5b36955fc85f081b0aeac11bfda3abeba6f0da68bd0539da7222205bffa3b4e2043ef723bae706a2e0b65c
@@ -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,
@@ -51,7 +51,7 @@ end
51
51
  module CloudClient
52
52
 
53
53
  # OpenNebula version
54
- VERSION = '5.11.80'
54
+ VERSION = '5.11.85'
55
55
 
56
56
  # #########################################################################
57
57
  # Default location for the authentication file
@@ -74,5 +74,5 @@ require 'opennebula/hook_log'
74
74
  module OpenNebula
75
75
 
76
76
  # OpenNebula version
77
- VERSION = '5.11.80'
77
+ VERSION = '5.11.85'
78
78
  end
@@ -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, one_item: vm, host: self['ID']})
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
 
@@ -64,9 +64,8 @@ class OpenNebula::LdapAuth
64
64
  }
65
65
  end
66
66
 
67
- if !@options[:rfc2307bis]
68
- @options[:attributes] << @options[:user_field]
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
- [@user.dn, @user[@options[:user_group_field]]]
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, @user[@options[:user_group_field]]]
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 << "NAME=\"" << name << "\"\n"
196
- tmpl << "FROM_APP=\"" << self['ID'] << "\"\n"
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.80.pre
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-07 00:00:00.000000000 Z
11
+ date: 2020-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri