opennebula-cli 5.6.2 → 5.7.80.pre

Sign up to get free protection for your applications and to get access to all the features.
data/bin/onemarketapp CHANGED
@@ -16,26 +16,26 @@
16
16
  # limitations under the License. #
17
17
  #--------------------------------------------------------------------------- #
18
18
 
19
- ONE_LOCATION=ENV["ONE_LOCATION"]
19
+ ONE_LOCATION = ENV['ONE_LOCATION']
20
20
 
21
21
  if !ONE_LOCATION
22
- RUBY_LIB_LOCATION = "/usr/lib/one/ruby"
23
- VAR_LOCATION = "/var/lib/one"
22
+ RUBY_LIB_LOCATION = '/usr/lib/one/ruby'
23
+ VAR_LOCATION = '/var/lib/one'
24
24
  else
25
- RUBY_LIB_LOCATION = ONE_LOCATION + "/lib/ruby"
26
- VAR_LOCATION = ONE_LOCATION + "/var"
25
+ RUBY_LIB_LOCATION = ONE_LOCATION + '/lib/ruby'
26
+ VAR_LOCATION = ONE_LOCATION + '/var'
27
27
  end
28
28
 
29
- $: << RUBY_LIB_LOCATION
30
- $: << RUBY_LIB_LOCATION+"/cli"
29
+ $LOAD_PATH << RUBY_LIB_LOCATION
30
+ $LOAD_PATH << RUBY_LIB_LOCATION + '/cli'
31
31
 
32
32
  require 'command_parser'
33
33
  require 'one_helper/onemarketapp_helper'
34
34
  require 'one_helper/onemarket_helper'
35
35
  require 'one_helper/onedatastore_helper'
36
36
 
37
- cmd=CommandParser::CmdParser.new(ARGV) do
38
- usage "`onemarket` <command> [<args>] [<options>]"
37
+ CommandParser::CmdParser.new(ARGV) do
38
+ usage '`onemarket` <command> [<args>] [<options>]'
39
39
  version OpenNebulaHelper::ONE_VERSION
40
40
 
41
41
  helper = OneMarketPlaceAppHelper.new
@@ -44,34 +44,34 @@ cmd=CommandParser::CmdParser.new(ARGV) do
44
44
  helper.set_client(options)
45
45
  end
46
46
 
47
- USE={
48
- :name => "use",
49
- :large => "--use",
50
- :description => "lock use actions"
47
+ USE = {
48
+ :name => 'use',
49
+ :large => '--use',
50
+ :description => 'lock use actions'
51
51
  }
52
52
 
53
- MANAGE={
54
- :name => "manage",
55
- :large => "--manage",
56
- :description => "lock manage actions"
53
+ MANAGE = {
54
+ :name => 'manage',
55
+ :large => '--manage',
56
+ :description => 'lock manage actions'
57
57
  }
58
58
 
59
- ADMIN={
60
- :name => "admin",
61
- :large => "--admin",
62
- :description => "lock admin actions"
59
+ ADMIN = {
60
+ :name => 'admin',
61
+ :large => '--admin',
62
+ :description => 'lock admin actions'
63
63
  }
64
64
 
65
- ALL={
66
- :name => "all",
67
- :large => "--all",
68
- :description => "lock all actions"
65
+ ALL = {
66
+ :name => 'all',
67
+ :large => '--all',
68
+ :description => 'lock all actions'
69
69
  }
70
70
 
71
71
  ########################################################################
72
72
  # Global Options
73
73
  ########################################################################
74
- set :option, CommandParser::OPTIONS+OpenNebulaHelper::CLIENT_OPTIONS
74
+ set :option, CommandParser::OPTIONS + OpenNebulaHelper::CLIENT_OPTIONS
75
75
 
76
76
  list_options = CLIHelper::OPTIONS
77
77
  list_options << OpenNebulaHelper::XML
@@ -79,17 +79,18 @@ cmd=CommandParser::CmdParser.new(ARGV) do
79
79
  list_options << OpenNebulaHelper::DESCRIBE
80
80
 
81
81
  CREATE_OPTIONS = [OneMarketPlaceHelper::MARKETPLACE]
82
- EXPORT_OPTIONS = [OneDatastoreHelper::DATASTORE, OneMarketPlaceAppHelper::VMNAME]
82
+ EXPORT_OPTIONS = [OneDatastoreHelper::DATASTORE,
83
+ OneMarketPlaceAppHelper::VMNAME]
83
84
 
84
85
  ########################################################################
85
86
  # Formatters for arguments
86
87
  ########################################################################
87
- set :format, :groupid, OpenNebulaHelper.rname_to_id_desc("GROUP") do |arg|
88
- OpenNebulaHelper.rname_to_id(arg, "GROUP")
88
+ set :format, :groupid, OpenNebulaHelper.rname_to_id_desc('GROUP') do |arg|
89
+ OpenNebulaHelper.rname_to_id(arg, 'GROUP')
89
90
  end
90
91
 
91
- set :format, :userid, OpenNebulaHelper.rname_to_id_desc("USER") do |arg|
92
- OpenNebulaHelper.rname_to_id(arg, "USER")
92
+ set :format, :userid, OpenNebulaHelper.rname_to_id_desc('USER') do |arg|
93
+ OpenNebulaHelper.rname_to_id(arg, 'USER')
93
94
  end
94
95
 
95
96
  set :format, :appid, OneMarketPlaceAppHelper.to_id_desc do |arg|
@@ -100,7 +101,8 @@ cmd=CommandParser::CmdParser.new(ARGV) do
100
101
  helper.list_to_id(arg)
101
102
  end
102
103
 
103
- set :format, :filterflag, OneMarketPlaceAppHelper.filterflag_to_i_desc do |arg|
104
+ set :format, :filterflag,
105
+ OneMarketPlaceAppHelper.filterflag_to_i_desc do |arg|
104
106
  helper.filterflag_to_i(arg)
105
107
  end
106
108
 
@@ -112,27 +114,30 @@ cmd=CommandParser::CmdParser.new(ARGV) do
112
114
  Creates a new marketplace app in the given marketplace
113
115
  EOT
114
116
 
115
- command :create, create_desc, [:file, nil], :options=>CREATE_OPTIONS +
116
- OneMarketPlaceAppHelper::TEMPLATE_OPTIONS do
117
+ command :create, create_desc, [:file, nil],
118
+ :options => CREATE_OPTIONS +
119
+ OneMarketPlaceAppHelper::TEMPLATE_OPTIONS do
117
120
 
118
121
  if options[:marketplace].nil?
119
- STDERR.puts "Marketplace to save the app is mandatory: "
120
- STDERR.puts "\t -m marketplace_id"
122
+ STDERR.puts 'Marketplace to save the app is mandatory: '
123
+ STDERR.puts '\t -m marketplace_id'
121
124
  exit(-1)
122
125
  end
123
126
 
124
- if args[0] && OneMarketPlaceAppHelper.create_template_options_used?(options)
125
- STDERR.puts "You can not use both template file and template"<<
126
- " creation options."
127
+ if args[0] &&
128
+ OneMarketPlaceAppHelper.create_template_options_used?(options)
129
+ STDERR.puts 'You can not use both template file and template'\
130
+ ' creation options.'
127
131
  next -1
128
132
  end
129
133
 
130
134
  helper.create_resource(options) do |app|
131
135
  begin
132
136
  if args[0]
133
- template=File.read(args[0])
137
+ template = File.read(args[0])
134
138
  else
135
- res = OneMarketPlaceAppHelper.create_datastore_template(options)
139
+ res = OneMarketPlaceAppHelper
140
+ .create_datastore_template(options)
136
141
 
137
142
  if res.first != 0
138
143
  STDERR.puts res.last
@@ -148,7 +153,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
148
153
  end
149
154
 
150
155
  app.allocate(template, options[:marketplace])
151
- rescue => e
156
+ rescue StandardError => e
152
157
  STDERR.puts e.message
153
158
  exit(-1)
154
159
  end
@@ -159,27 +164,26 @@ cmd=CommandParser::CmdParser.new(ARGV) do
159
164
  Exports the marketplace app to the OpenNebula cloud
160
165
  EOT
161
166
 
162
- command :export, export_desc, :appid, :name, :options=>EXPORT_OPTIONS do
163
- helper.perform_action(args[0], options, "exported") do |obj|
164
-
165
- rc = obj.export({
166
- :dsid=>options[:datastore],
167
- :name=>args[1],
168
- :vmtemplate_name=>options[:vmname]
169
- })
167
+ command :export, export_desc, :appid, :name, :options => EXPORT_OPTIONS do
168
+ helper.perform_action(args[0], options, 'exported') do |obj|
169
+ rc = obj.export(
170
+ :dsid => options[:datastore],
171
+ :name => args[1],
172
+ :vmtemplate_name => options[:vmname]
173
+ )
170
174
 
171
175
  next rc if OpenNebula.is_error?(rc)
172
176
 
173
- rc.each { |key, value|
174
- puts "#{key.to_s.upcase}"
175
- value.each{ |id|
177
+ rc.each do |key, value|
178
+ puts key.to_s.upcase
179
+ value.each do |id|
176
180
  if OpenNebula.is_error?(id)
177
181
  puts id.to_str
178
182
  else
179
183
  puts " ID: #{id}"
180
184
  end
181
- }
182
- }
185
+ end
186
+ end
183
187
  end
184
188
  end
185
189
 
@@ -188,8 +192,8 @@ cmd=CommandParser::CmdParser.new(ARGV) do
188
192
  EOT
189
193
 
190
194
  command :download, download_desc, :appid, :path,
191
- :options => [OpenNebulaHelper::FORCE] do
192
- helper.perform_action(args[0],options,"downloaded") do |app|
195
+ :options => [OpenNebulaHelper::FORCE] do
196
+ helper.perform_action(args[0], options, 'downloaded') do
193
197
  download_args = [:marketplaceapp, args[0], args[1], options[:force]]
194
198
  OpenNebulaHelper.download_resource_sunstone(*download_args)
195
199
  end
@@ -200,7 +204,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
200
204
  EOT
201
205
 
202
206
  command :delete, delete_desc, [:range, :appid_list] do
203
- helper.perform_actions(args[0], options, "deleted") do |app|
207
+ helper.perform_actions(args[0], options, 'deleted') do |app|
204
208
  app.delete
205
209
  end
206
210
  end
@@ -211,9 +215,9 @@ cmd=CommandParser::CmdParser.new(ARGV) do
211
215
  EOT
212
216
 
213
217
  command :update, update_desc, :appid, [:file, nil],
214
- :options=>OpenNebulaHelper::APPEND do
218
+ :options => OpenNebulaHelper::APPEND do
215
219
 
216
- helper.perform_action(args[0],options,"modified") do |obj|
220
+ helper.perform_action(args[0], options, 'modified') do |obj|
217
221
  if options[:append]
218
222
  str = OpenNebulaHelper.append_template(args[0], obj, args[1])
219
223
  else
@@ -228,8 +232,8 @@ cmd=CommandParser::CmdParser.new(ARGV) do
228
232
  Changes the marketplace app group
229
233
  EOT
230
234
 
231
- command :chgrp, chgrp_desc,[:range, :appid_list], :groupid do
232
- helper.perform_actions(args[0], options, "Group changed") do |app|
235
+ command :chgrp, chgrp_desc, [:range, :appid_list], :groupid do
236
+ helper.perform_actions(args[0], options, 'Group changed') do |app|
233
237
  app.chown(-1, args[1].to_i)
234
238
  end
235
239
  end
@@ -240,9 +244,9 @@ cmd=CommandParser::CmdParser.new(ARGV) do
240
244
 
241
245
  command :chown, chown_desc, [:range, :appid_list], :userid,
242
246
  [:groupid, nil] do
243
- gid = args[2].nil? ? -1 : args[2].to_i
247
+ args[2].nil? ? gid = -1 : gid = args[2].to_i
244
248
 
245
- helper.perform_actions(args[0], options, "Owner/Group changed") do |app|
249
+ helper.perform_actions(args[0], options, 'Owner/Group changed') do |app|
246
250
  app.chown(args[1].to_i, gid)
247
251
  end
248
252
  end
@@ -252,7 +256,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
252
256
  EOT
253
257
 
254
258
  command :chmod, chmod_desc, [:range, :appid_list], :octet do
255
- helper.perform_actions(args[0], options, "Permissions changed") do |app|
259
+ helper.perform_actions(args[0], options, 'Permissions changed') do |app|
256
260
  app.chmod_octet(args[1])
257
261
  end
258
262
  end
@@ -262,7 +266,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
262
266
  EOT
263
267
 
264
268
  command :rename, rename_desc, :appid, :name do
265
- helper.perform_action(args[0], options, "renamed") do |o|
269
+ helper.perform_action(args[0], options, 'renamed') do |o|
266
270
  o.rename(args[1])
267
271
  end
268
272
  end
@@ -271,7 +275,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
271
275
  Lists marketplace apps
272
276
  EOT
273
277
 
274
- command :list, list_desc, [:filterflag, nil], :options=>list_options do
278
+ command :list, list_desc, [:filterflag, nil], :options => list_options do
275
279
  helper.list_pool(options, false, args[0])
276
280
  end
277
281
 
@@ -279,7 +283,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
279
283
  Shows information for the given marketplace app
280
284
  EOT
281
285
 
282
- command :show, show_desc, :appid, :options=>OpenNebulaHelper::XML do
286
+ command :show, show_desc, :appid, :options => OpenNebulaHelper::XML do
283
287
  helper.show_resource(args[0], options)
284
288
  end
285
289
 
@@ -288,7 +292,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
288
292
  EOT
289
293
 
290
294
  command :enable, enable_desc, [:range, :appid_list] do
291
- helper.perform_actions(args[0], options, "enabled") do |obj|
295
+ helper.perform_actions(args[0], options, 'enabled') do |obj|
292
296
  obj.enable
293
297
  end
294
298
  end
@@ -299,14 +303,14 @@ cmd=CommandParser::CmdParser.new(ARGV) do
299
303
  EOT
300
304
 
301
305
  command :disable, disable_desc, [:range, :appid_list] do
302
- helper.perform_actions(args[0], options, "disabled") do |obj|
306
+ helper.perform_actions(args[0], options, 'disabled') do |obj|
303
307
  obj.disable
304
308
  end
305
309
  end
306
310
 
307
311
  lock_desc = <<-EOT.unindent
308
- Locks a VM with differents levels for lock any actions with this VM, show and
309
- monitoring never will be locked.
312
+ Locks a VM with differents levels for lock any actions with this VM,
313
+ show and monitoring never will be locked.
310
314
  Valid states are: All.
311
315
  Levels:
312
316
  [Use]: locks Admin, Manage and Use actions.
@@ -315,8 +319,10 @@ cmd=CommandParser::CmdParser.new(ARGV) do
315
319
  EOT
316
320
 
317
321
  command :lock, lock_desc, :appid,
318
- :options => [USE, MANAGE, ADMIN, ALL] do
319
- helper.perform_action(args[0],options,"MarketPlaceApp locked") do |app|
322
+ :options => [USE, MANAGE, ADMIN, ALL] do
323
+ helper.perform_action(args[0],
324
+ options,
325
+ 'MarketPlaceApp locked') do |app|
320
326
  if !options[:use].nil?
321
327
  level = 1
322
328
  elsif !options[:manage].nil?
@@ -338,7 +344,9 @@ cmd=CommandParser::CmdParser.new(ARGV) do
338
344
  EOT
339
345
 
340
346
  command :unlock, unlock_desc, :appid do
341
- helper.perform_action(args[0],options,"MarketPlaceApp unlocked") do |app|
347
+ helper.perform_action(args[0],
348
+ options,
349
+ 'MarketPlaceApp unlocked') do |app|
342
350
  app.unlock
343
351
  end
344
352
  end
data/bin/onesecgroup CHANGED
@@ -16,22 +16,22 @@
16
16
  # limitations under the License. #
17
17
  #--------------------------------------------------------------------------- #
18
18
 
19
- ONE_LOCATION=ENV["ONE_LOCATION"]
19
+ ONE_LOCATION = ENV['ONE_LOCATION']
20
20
 
21
21
  if !ONE_LOCATION
22
- RUBY_LIB_LOCATION="/usr/lib/one/ruby"
22
+ RUBY_LIB_LOCATION = '/usr/lib/one/ruby'
23
23
  else
24
- RUBY_LIB_LOCATION=ONE_LOCATION+"/lib/ruby"
24
+ RUBY_LIB_LOCATION = ONE_LOCATION + '/lib/ruby'
25
25
  end
26
26
 
27
- $: << RUBY_LIB_LOCATION
28
- $: << RUBY_LIB_LOCATION+"/cli"
27
+ $LOAD_PATH << RUBY_LIB_LOCATION
28
+ $LOAD_PATH << RUBY_LIB_LOCATION + '/cli'
29
29
 
30
30
  require 'command_parser'
31
31
  require 'one_helper/onesecgroup_helper'
32
32
 
33
- cmd=CommandParser::CmdParser.new(ARGV) do
34
- usage "`onesecgroup` <command> [<args>] [<options>]"
33
+ CommandParser::CmdParser.new(ARGV) do
34
+ usage '`onesecgroup` <command> [<args>] [<options>]'
35
35
  version OpenNebulaHelper::ONE_VERSION
36
36
 
37
37
  helper = OneSecurityGroupHelper.new
@@ -43,7 +43,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
43
43
  ########################################################################
44
44
  # Global Options
45
45
  ########################################################################
46
- set :option, CommandParser::OPTIONS+OpenNebulaHelper::CLIENT_OPTIONS
46
+ set :option, CommandParser::OPTIONS + OpenNebulaHelper::CLIENT_OPTIONS
47
47
 
48
48
  list_options = CLIHelper::OPTIONS
49
49
  list_options << OpenNebulaHelper::XML
@@ -53,23 +53,27 @@ cmd=CommandParser::CmdParser.new(ARGV) do
53
53
  ########################################################################
54
54
  # Formatters for arguments
55
55
  ########################################################################
56
- set :format, :groupid, OpenNebulaHelper.rname_to_id_desc("GROUP") do |arg|
57
- OpenNebulaHelper.rname_to_id(arg, "GROUP")
56
+ set :format, :groupid, OpenNebulaHelper.rname_to_id_desc('GROUP') do |arg|
57
+ OpenNebulaHelper.rname_to_id(arg, 'GROUP')
58
58
  end
59
59
 
60
- set :format, :userid, OpenNebulaHelper.rname_to_id_desc("USER") do |arg|
61
- OpenNebulaHelper.rname_to_id(arg, "USER")
60
+ set :format, :userid, OpenNebulaHelper.rname_to_id_desc('USER') do |arg|
61
+ OpenNebulaHelper.rname_to_id(arg, 'USER')
62
62
  end
63
63
 
64
64
  set :format, :secgroupid, OneSecurityGroupHelper.to_id_desc do |arg|
65
65
  helper.to_id(arg)
66
66
  end
67
67
 
68
- set :format, :secgroupid_list, OneSecurityGroupHelper.list_to_id_desc do |arg|
68
+ set :format,
69
+ :secgroupid_list,
70
+ OneSecurityGroupHelper.list_to_id_desc do |arg|
69
71
  helper.list_to_id(arg)
70
72
  end
71
73
 
72
- set :format, :filterflag, OneSecurityGroupHelper.filterflag_to_i_desc do |arg|
74
+ set :format,
75
+ :filterflag,
76
+ OneSecurityGroupHelper.filterflag_to_i_desc do |arg|
73
77
  helper.filterflag_to_i(arg)
74
78
  end
75
79
 
@@ -87,9 +91,9 @@ cmd=CommandParser::CmdParser.new(ARGV) do
87
91
  template = File.read(args[0])
88
92
 
89
93
  obj.allocate(template)
90
- rescue => e
94
+ rescue StandardError => e
91
95
  STDERR.puts e.messsage
92
- exit -1
96
+ exit(-1)
93
97
  end
94
98
  end
95
99
  end
@@ -99,7 +103,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
99
103
  EOT
100
104
 
101
105
  command :clone, clone_desc, :secgroupid, :name do
102
- helper.perform_action(args[0],options,"cloned") do |obj|
106
+ helper.perform_action(args[0], options, 'cloned') do |obj|
103
107
  res = obj.clone(args[1])
104
108
 
105
109
  if !OpenNebula.is_error?(res)
@@ -115,7 +119,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
115
119
  EOT
116
120
 
117
121
  command :delete, delete_desc, [:range, :secgroupid_list] do
118
- helper.perform_actions(args[0],options,"deleted") do |obj|
122
+ helper.perform_actions(args[0], options, 'deleted') do |obj|
119
123
  obj.delete
120
124
  end
121
125
  end
@@ -124,8 +128,8 @@ cmd=CommandParser::CmdParser.new(ARGV) do
124
128
  Changes the Security Group's group
125
129
  EOT
126
130
 
127
- command :chgrp, chgrp_desc,[:range, :secgroupid_list], :groupid do
128
- helper.perform_actions(args[0],options,"Group changed") do |obj|
131
+ command :chgrp, chgrp_desc, [:range, :secgroupid_list], :groupid do
132
+ helper.perform_actions(args[0], options, 'Group changed') do |obj|
129
133
  obj.chown(-1, args[1].to_i)
130
134
  end
131
135
  end
@@ -135,9 +139,9 @@ cmd=CommandParser::CmdParser.new(ARGV) do
135
139
  EOT
136
140
 
137
141
  command :chown, chown_desc, [:range, :secgroupid_list], :userid,
138
- [:groupid,nil] do
139
- gid = args[2].nil? ? -1 : args[2].to_i
140
- helper.perform_actions(args[0],options,"Owner/Group changed") do |obj|
142
+ [:groupid, nil] do
143
+ args[2].nil? ? gid = -1 : gid = args[2].to_i
144
+ helper.perform_actions(args[0], options, 'Owner/Group changed') do |obj|
141
145
  obj.chown(args[1].to_i, gid)
142
146
  end
143
147
  end
@@ -147,7 +151,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
147
151
  EOT
148
152
 
149
153
  command :chmod, chmod_desc, [:range, :secgroupid_list], :octet do
150
- helper.perform_actions(args[0],options, "Permissions changed") do |t|
154
+ helper.perform_actions(args[0], options, 'Permissions changed') do |t|
151
155
  t.chmod_octet(args[1])
152
156
  end
153
157
  end
@@ -158,8 +162,8 @@ cmd=CommandParser::CmdParser.new(ARGV) do
158
162
  EOT
159
163
 
160
164
  command :update, update_desc, :secgroupid, [:file, nil],
161
- :options=>OpenNebulaHelper::APPEND do
162
- helper.perform_action(args[0],options,"modified") do |obj|
165
+ :options => OpenNebulaHelper::APPEND do
166
+ helper.perform_action(args[0], options, 'modified') do |obj|
163
167
  if options[:append]
164
168
  str = OpenNebulaHelper.append_template(args[0], obj, args[1])
165
169
  else
@@ -178,7 +182,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
178
182
  EOT
179
183
 
180
184
  command :rename, rename_desc, :secgroupid, :name do
181
- helper.perform_action(args[0],options,"renamed") do |o|
185
+ helper.perform_action(args[0], options, 'renamed') do |o|
182
186
  o.rename(args[1])
183
187
  end
184
188
  end
@@ -191,9 +195,9 @@ cmd=CommandParser::CmdParser.new(ARGV) do
191
195
  EOT
192
196
 
193
197
  command :commit, commit_desc, :secgroupid,
194
- :options =>[OneSecurityGroupHelper::RECOVER] do
195
- helper.perform_action(args[0], options, "commit") do |o|
196
- o.commit(options[:recover]==true)
198
+ :options => [OneSecurityGroupHelper::RECOVER] do
199
+ helper.perform_action(args[0], options, 'commit') do |o|
200
+ o.commit(options[:recover] == true)
197
201
  end
198
202
  end
199
203
 
@@ -201,7 +205,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
201
205
  Lists Security Group in the pool
202
206
  EOT
203
207
 
204
- command :list, list_desc, [:filterflag, nil], :options=>list_options do
208
+ command :list, list_desc, [:filterflag, nil], :options => list_options do
205
209
  helper.list_pool(options, false, args[0])
206
210
  end
207
211
 
@@ -209,7 +213,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
209
213
  Shows information for the given Security Group
210
214
  EOT
211
215
 
212
- command :show, show_desc, :secgroupid, :options=>OpenNebulaHelper::XML do
213
- helper.show_resource(args[0],options)
216
+ command :show, show_desc, :secgroupid, :options => OpenNebulaHelper::XML do
217
+ helper.show_resource(args[0], options)
214
218
  end
215
219
  end