opennebula 5.10.3 → 5.11.90.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ActionManager.rb +1 -1
- data/lib/CommandManager.rb +1 -1
- data/lib/DriverExecHelper.rb +19 -18
- data/lib/OpenNebulaDriver.rb +38 -62
- data/lib/VirtualMachineDriver.rb +1 -1
- data/lib/cloud/CloudClient.rb +3 -3
- data/lib/opennebula.rb +2 -2
- data/lib/opennebula/acl.rb +1 -1
- data/lib/opennebula/acl_pool.rb +1 -1
- data/lib/opennebula/client.rb +1 -1
- data/lib/opennebula/cluster.rb +1 -1
- data/lib/opennebula/cluster_pool.rb +1 -1
- data/lib/opennebula/datastore.rb +1 -1
- data/lib/opennebula/datastore_pool.rb +1 -1
- data/lib/opennebula/document.rb +1 -1
- data/lib/opennebula/document_json.rb +1 -1
- data/lib/opennebula/document_pool.rb +2 -2
- data/lib/opennebula/document_pool_json.rb +1 -1
- data/lib/opennebula/error.rb +1 -1
- data/lib/opennebula/group.rb +3 -1
- data/lib/opennebula/group_pool.rb +1 -1
- data/lib/opennebula/hook.rb +1 -1
- data/lib/opennebula/hook_log.rb +1 -1
- data/lib/opennebula/hook_pool.rb +1 -1
- data/lib/opennebula/host.rb +4 -4
- data/lib/opennebula/host_pool.rb +11 -5
- data/lib/opennebula/image.rb +1 -1
- data/lib/opennebula/image_pool.rb +1 -1
- data/lib/opennebula/ldap_auth.rb +24 -19
- data/lib/opennebula/ldap_auth_spec.rb +1 -1
- data/lib/opennebula/marketplace.rb +1 -1
- data/lib/opennebula/marketplace_pool.rb +1 -1
- data/lib/opennebula/marketplaceapp.rb +4 -3
- data/lib/opennebula/marketplaceapp_pool.rb +1 -1
- data/lib/opennebula/oneflow_client.rb +24 -3
- data/lib/opennebula/pool.rb +4 -10
- data/lib/opennebula/pool_element.rb +9 -37
- data/lib/opennebula/security_group.rb +1 -1
- data/lib/opennebula/security_group_pool.rb +1 -1
- data/lib/opennebula/server_cipher_auth.rb +1 -1
- data/lib/opennebula/server_x509_auth.rb +1 -1
- data/lib/opennebula/ssh_auth.rb +1 -1
- data/lib/opennebula/system.rb +3 -3
- data/lib/opennebula/template.rb +1 -1
- data/lib/opennebula/template_pool.rb +1 -1
- data/lib/opennebula/user.rb +1 -1
- data/lib/opennebula/user_pool.rb +1 -1
- data/lib/opennebula/utils.rb +1 -1
- data/lib/opennebula/vdc.rb +1 -1
- data/lib/opennebula/vdc_pool.rb +1 -1
- data/lib/opennebula/virtual_machine.rb +10 -7
- data/lib/opennebula/virtual_machine_pool.rb +9 -7
- data/lib/opennebula/virtual_network.rb +9 -3
- data/lib/opennebula/virtual_network_pool.rb +1 -1
- data/lib/opennebula/virtual_router.rb +1 -1
- data/lib/opennebula/virtual_router_pool.rb +1 -1
- data/lib/opennebula/vm_group.rb +1 -1
- data/lib/opennebula/vm_group_pool.rb +1 -1
- data/lib/opennebula/vntemplate.rb +1 -1
- data/lib/opennebula/vntemplate_pool.rb +1 -1
- data/lib/opennebula/x509_auth.rb +1 -1
- data/lib/opennebula/xml_element.rb +1 -1
- data/lib/opennebula/xml_pool.rb +1 -1
- data/lib/opennebula/xml_utils.rb +1 -1
- data/lib/opennebula/zone.rb +1 -1
- data/lib/opennebula/zone_pool.rb +1 -1
- data/lib/vcenter_driver.rb +8 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66f5101f43db2d5926a91cf47d329b3195267d3c
|
4
|
+
data.tar.gz: 57d61ad0c4d687eadeb7521dc9e7a68c6214ec38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3c263ed781184aad101a456e83909bb0c6c149e3b0e931d4560772bbae13e9888cd4e866e886548eccff3b89b8067e0ec2882052ff930e94da88e4d2c00d657
|
7
|
+
data.tar.gz: f79a5e7d90929e2a1fef95e615971d41a82d558597ccac349be2fb7c8ae81b2bcae46ceee57eb5059987ab993fed492887ecec772606d23243a37e81411a7665
|
data/lib/ActionManager.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- */
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2020, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may */
|
4
4
|
# not use this file except in compliance with the License. You may obtain */
|
5
5
|
# a copy of the License at */
|
data/lib/CommandManager.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# --------------------------------------------------------------------------
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2020, OpenNebula Project, OpenNebula Systems
|
3
3
|
#
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
5
5
|
# not use this file except in compliance with the License. You may obtain
|
data/lib/DriverExecHelper.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2020, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -28,15 +28,15 @@ module DriverExecHelper
|
|
28
28
|
return rc_str == RESULT[:failure]
|
29
29
|
end
|
30
30
|
|
31
|
-
#Initialize module variables
|
31
|
+
# Initialize module variables
|
32
32
|
def initialize_helper(directory, options)
|
33
33
|
@config = read_configuration
|
34
34
|
@remote_scripts_base_path = @config['SCRIPTS_REMOTE_DIR']
|
35
35
|
|
36
36
|
@local_actions = options[:local_actions]
|
37
37
|
|
38
|
-
if ENV['ONE_LOCATION']
|
39
|
-
@local_scripts_base_path =
|
38
|
+
if ENV['ONE_LOCATION'].nil?
|
39
|
+
@local_scripts_base_path = '/var/lib/one/remotes'
|
40
40
|
else
|
41
41
|
@local_scripts_base_path = "#{ENV['ONE_LOCATION']}/var/remotes"
|
42
42
|
end
|
@@ -176,37 +176,38 @@ module DriverExecHelper
|
|
176
176
|
one_config = '/var/lib/one/config'
|
177
177
|
end
|
178
178
|
|
179
|
-
config=
|
180
|
-
cfg=''
|
179
|
+
config = {}
|
180
|
+
cfg = ''
|
181
181
|
|
182
182
|
begin
|
183
|
-
open(one_config) do |file|
|
183
|
+
File.open(one_config, 'r') do |file|
|
184
184
|
cfg=file.read
|
185
185
|
end
|
186
186
|
|
187
187
|
cfg.split(/\n/).each do |line|
|
188
188
|
m=line.match(/^([^=]+)=(.*)$/)
|
189
189
|
|
190
|
-
|
191
|
-
name=m[1].strip.upcase
|
192
|
-
value=m[2].strip
|
190
|
+
next unless m
|
193
191
|
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
192
|
+
name = m[1].strip.upcase
|
193
|
+
value = m[2].strip
|
194
|
+
|
195
|
+
if config[name]
|
196
|
+
if config[name].instance_of? Array
|
197
|
+
config[name] << value
|
200
198
|
else
|
201
|
-
config[name]=value
|
199
|
+
config[name] = [config[name], value]
|
202
200
|
end
|
201
|
+
else
|
202
|
+
config[name]=value
|
203
203
|
end
|
204
204
|
end
|
205
|
-
rescue
|
205
|
+
rescue StandardException => e
|
206
206
|
STDERR.puts "Error reading config: #{e.inspect}"
|
207
207
|
STDERR.flush
|
208
208
|
end
|
209
209
|
|
210
210
|
config
|
211
211
|
end
|
212
|
+
|
212
213
|
end
|
data/lib/OpenNebulaDriver.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2020, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -14,10 +14,10 @@
|
|
14
14
|
# limitations under the License. #
|
15
15
|
#--------------------------------------------------------------------------- #
|
16
16
|
|
17
|
-
require
|
18
|
-
require
|
17
|
+
require 'ActionManager'
|
18
|
+
require 'CommandManager'
|
19
19
|
|
20
|
-
require
|
20
|
+
require 'DriverExecHelper'
|
21
21
|
require 'base64'
|
22
22
|
|
23
23
|
# This class provides basic messaging and logging functionality
|
@@ -29,6 +29,7 @@ require 'base64'
|
|
29
29
|
# for each action it wants to receive. The method must be associated
|
30
30
|
# with the action name through the register_action function
|
31
31
|
class OpenNebulaDriver < ActionManager
|
32
|
+
|
32
33
|
include DriverExecHelper
|
33
34
|
|
34
35
|
# @return [String] Base path for scripts
|
@@ -48,13 +49,13 @@ class OpenNebulaDriver < ActionManager
|
|
48
49
|
# @option options [Hash] :local_actions ({}) hash with the actions
|
49
50
|
# executed locally and the name of the script if it differs from the
|
50
51
|
# default one. This hash can be constructed using {parse_actions_list}
|
51
|
-
def initialize(directory, options={})
|
52
|
+
def initialize(directory, options = {})
|
52
53
|
@options={
|
53
54
|
:concurrency => 10,
|
54
|
-
:threaded
|
55
|
-
:retries
|
55
|
+
:threaded => true,
|
56
|
+
:retries => 0,
|
56
57
|
:local_actions => {},
|
57
|
-
:timeout
|
58
|
+
:timeout => nil
|
58
59
|
}.merge!(options)
|
59
60
|
|
60
61
|
super(@options[:concurrency], @options[:threaded])
|
@@ -62,14 +63,12 @@ class OpenNebulaDriver < ActionManager
|
|
62
63
|
@retries = @options[:retries]
|
63
64
|
@timeout = @options[:timeout]
|
64
65
|
|
65
|
-
#Set default values
|
66
|
+
# Set default values
|
66
67
|
initialize_helper(directory, @options)
|
67
68
|
|
68
|
-
register_action(:INIT, method(
|
69
|
+
register_action(:INIT, method('init'))
|
69
70
|
end
|
70
71
|
|
71
|
-
|
72
|
-
|
73
72
|
# Calls remotes or local action checking the action name and
|
74
73
|
# @local_actions. Optional arguments can be specified as a hash
|
75
74
|
#
|
@@ -83,20 +82,22 @@ class OpenNebulaDriver < ActionManager
|
|
83
82
|
# action name is used by defaults
|
84
83
|
# @option ops [Bool] :respond if defined will send result to ONE core
|
85
84
|
# @option ops [Bool] :base64 encode the information sent to ONE core
|
86
|
-
|
87
|
-
|
88
|
-
|
85
|
+
# @option ops [Bool] :zip compress the information sent to ONE core
|
86
|
+
def do_action(parameters, id, host, aname, ops = {})
|
87
|
+
options = {
|
88
|
+
:stdin => nil,
|
89
89
|
:script_name => nil,
|
90
|
-
:respond
|
91
|
-
:ssh_stream
|
92
|
-
:base64
|
90
|
+
:respond => true,
|
91
|
+
:ssh_stream => nil,
|
92
|
+
:base64 => false,
|
93
|
+
:zip => false
|
93
94
|
}.merge(ops)
|
94
95
|
|
95
96
|
params = parameters + " #{id} #{host}"
|
96
97
|
command = action_command_line(aname, params, options[:script_name])
|
97
98
|
|
98
99
|
if action_is_local?(aname)
|
99
|
-
stdin = Base64
|
100
|
+
stdin = Base64.strict_encode64(options[:stdin].to_s)
|
100
101
|
execution = LocalCommand.run(command,
|
101
102
|
log_method(id),
|
102
103
|
stdin,
|
@@ -114,7 +115,6 @@ class OpenNebulaDriver < ActionManager
|
|
114
115
|
stdin,
|
115
116
|
command,
|
116
117
|
@timeout)
|
117
|
-
|
118
118
|
else
|
119
119
|
execution = RemotesCommand.run(command,
|
120
120
|
host,
|
@@ -128,20 +128,20 @@ class OpenNebulaDriver < ActionManager
|
|
128
128
|
result, info = get_info_from_execution(execution)
|
129
129
|
|
130
130
|
if options[:respond]
|
131
|
-
info =
|
131
|
+
info = Zlib::Deflate.deflate(info, Zlib::BEST_COMPRESSION) if options[:zip]
|
132
|
+
info = Base64.strict_encode64(info) if options[:base64]
|
133
|
+
|
132
134
|
send_message(aname, result, id, info)
|
133
135
|
end
|
134
136
|
|
135
137
|
[result, info]
|
136
138
|
end
|
137
139
|
|
138
|
-
|
139
140
|
# Start the driver. Reads from STDIN and executes methods associated with
|
140
141
|
# the messages
|
141
142
|
def start_driver
|
142
|
-
|
143
|
+
Thread.new { loop }
|
143
144
|
start_listener
|
144
|
-
loop_thread.kill
|
145
145
|
end
|
146
146
|
|
147
147
|
# This function parses a string with this form:
|
@@ -156,12 +156,12 @@ class OpenNebulaDriver < ActionManager
|
|
156
156
|
# @param [String] str imput string to parse
|
157
157
|
# @return [Hash] parsed actions
|
158
158
|
def self.parse_actions_list(str)
|
159
|
-
actions=
|
160
|
-
str_splitted=str.split(/\s*,\s*/).map {|s| s.strip }
|
159
|
+
actions = {}
|
160
|
+
str_splitted = str.split(/\s*,\s*/).map {|s| s.strip }
|
161
161
|
|
162
162
|
str_splitted.each do |a|
|
163
163
|
m=a.match(/([^=]+)(=(.*))?/)
|
164
|
-
next
|
164
|
+
next unless m
|
165
165
|
|
166
166
|
action=m[1].upcase
|
167
167
|
|
@@ -178,21 +178,21 @@ class OpenNebulaDriver < ActionManager
|
|
178
178
|
actions
|
179
179
|
end
|
180
180
|
|
181
|
-
private
|
181
|
+
private
|
182
182
|
|
183
183
|
def init
|
184
|
-
send_message(
|
184
|
+
send_message('INIT', RESULT[:success])
|
185
185
|
end
|
186
186
|
|
187
187
|
def loop
|
188
|
-
|
189
|
-
exit(-1) if STDIN.eof?
|
188
|
+
Kernel.loop do
|
189
|
+
exit!(-1) if STDIN.eof?
|
190
190
|
|
191
|
-
str=STDIN.gets
|
192
|
-
next
|
191
|
+
str = STDIN.gets
|
192
|
+
next unless str
|
193
193
|
|
194
|
-
args
|
195
|
-
next if args.
|
194
|
+
args = str.split(/\s+/)
|
195
|
+
next if args.empty?
|
196
196
|
|
197
197
|
if args.first.empty?
|
198
198
|
STDERR.puts "Malformed message: #{str.inspect}"
|
@@ -201,7 +201,7 @@ private
|
|
201
201
|
|
202
202
|
action = args.shift.upcase.to_sym
|
203
203
|
|
204
|
-
if
|
204
|
+
if args.empty? || !args[0]
|
205
205
|
action_id = 0
|
206
206
|
else
|
207
207
|
action_id = args[0].to_i
|
@@ -209,35 +209,11 @@ private
|
|
209
209
|
|
210
210
|
if action == :DRIVER_CANCEL
|
211
211
|
cancel_action(action_id)
|
212
|
-
log(action_id,"Driver command for #{action_id} cancelled")
|
212
|
+
log(action_id, "Driver command for #{action_id} cancelled")
|
213
213
|
else
|
214
|
-
trigger_action(action,action_id
|
214
|
+
trigger_action(action, action_id, *args)
|
215
215
|
end
|
216
216
|
end
|
217
217
|
end
|
218
|
-
end
|
219
|
-
|
220
|
-
################################################################
|
221
|
-
################################################################
|
222
|
-
|
223
|
-
if __FILE__ == $0
|
224
|
-
|
225
|
-
class SampleDriver < OpenNebulaDriver
|
226
|
-
def initialize
|
227
|
-
super(15,true)
|
228
|
-
|
229
|
-
register_action(:SLEEP,method("my_sleep"))
|
230
|
-
end
|
231
|
-
|
232
|
-
def my_sleep(num, timeout)
|
233
|
-
log(num,"Sleeping #{timeout} seconds")
|
234
|
-
sleep(timeout.to_i)
|
235
|
-
log(num,"Done with #{num}")
|
236
|
-
|
237
|
-
send_message("SLEEP",RESULT[:success],num.to_s)
|
238
|
-
end
|
239
|
-
end
|
240
218
|
|
241
|
-
sd = SampleDriver.new
|
242
|
-
sd.start_driver
|
243
219
|
end
|
data/lib/VirtualMachineDriver.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2020, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
data/lib/cloud/CloudClient.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2020, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -51,7 +51,7 @@ end
|
|
51
51
|
module CloudClient
|
52
52
|
|
53
53
|
# OpenNebula version
|
54
|
-
VERSION = '5.
|
54
|
+
VERSION = '5.11.90'
|
55
55
|
|
56
56
|
# #########################################################################
|
57
57
|
# Default location for the authentication file
|
@@ -229,7 +229,7 @@ module CloudCLI
|
|
229
229
|
def version_text
|
230
230
|
version=<<EOT
|
231
231
|
OpenNebula #{CloudClient::VERSION}
|
232
|
-
Copyright 2002-
|
232
|
+
Copyright 2002-2020, OpenNebula Project, OpenNebula Systems
|
233
233
|
|
234
234
|
Licensed under the Apache License, Version 2.0 (the "License"); you may
|
235
235
|
not use this file except in compliance with the License. You may obtain
|
data/lib/opennebula.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2020, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -74,5 +74,5 @@ require 'opennebula/hook_log'
|
|
74
74
|
module OpenNebula
|
75
75
|
|
76
76
|
# OpenNebula version
|
77
|
-
VERSION = '5.
|
77
|
+
VERSION = '5.11.90'
|
78
78
|
end
|
data/lib/opennebula/acl.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2020, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
data/lib/opennebula/acl_pool.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2020, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
data/lib/opennebula/client.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2020, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
data/lib/opennebula/cluster.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2020, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2020, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
data/lib/opennebula/datastore.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2020, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2020, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
data/lib/opennebula/document.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2020, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2020, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2020, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -52,7 +52,7 @@ module OpenNebula
|
|
52
52
|
#
|
53
53
|
# @param [OpenNebula::Client] client the xml-rpc client
|
54
54
|
# @param [Integer] user_id the filter flag, see
|
55
|
-
# http://opennebula.
|
55
|
+
# http://docs.opennebula.io/stable/integration/system_interfaces/api.html
|
56
56
|
#
|
57
57
|
# @return [DocumentPool] the new object
|
58
58
|
def initialize(client, user_id=-1)
|