opennebula-cli 5.4.3 → 5.4.4

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: 1d010b81733f809149dd37ca8972428fb10717d7
4
- data.tar.gz: f182b9456988fc14d49fe6ad17f2795657864eb7
3
+ metadata.gz: 4351d3ab9ce994759b3363bc8c7dc7d965da16cf
4
+ data.tar.gz: dc532936124a362255f63af9604195bc4cd9d421
5
5
  SHA512:
6
- metadata.gz: 0640d3ac8be2c3757497c8331199c2663b97587163668b2159c873fe12db999df69f000004e902f099fd88b37853c2a452e8e7f96f0855341e13f8a2883f8382
7
- data.tar.gz: 7d9b48d1b8f635db36fc7c15b363948eff6898910b0802f97364deb07edfa73bb91f0a82e38db1bb777b55781473cc3abd8f2c68f0145ac9dd3198e991cbc90d
6
+ metadata.gz: 889a05976c543fc27f5c43a63411d11fc2a5f29881e1a608b2cb8a672155edeaf6ba5ce5c59041d6372e516e6c5c2a89325fe0aed4ed4e45f1971eb93b77c86b
7
+ data.tar.gz: 5cb1ece87f1893f97de439145295a987f48a9b2195eabbe0b423df6de9e1cc3b018179d8c827b7c8422bb7ed596dae6860545122ad8ce562a25d408940182090
data/bin/onegroup CHANGED
@@ -87,13 +87,6 @@ cmd=CommandParser::CmdParser.new(ARGV) do
87
87
  command :create, create_desc, [:group_name, nil], :options =>
88
88
  OpenNebulaHelper::GROUP_OPTIONS do
89
89
 
90
-
91
- if !args[0] && options.empty?
92
- STDERR.puts "Please use either a group name or command arguments."<<
93
- " Run onegroup create -h for more information"
94
- next -1
95
- end
96
-
97
90
  if options && options[:admin_user]
98
91
  if !options[:admin_password]
99
92
  STDERR.puts "Admin user needs password"
@@ -108,11 +101,15 @@ cmd=CommandParser::CmdParser.new(ARGV) do
108
101
  options[:group_admin] = admin_user
109
102
  end
110
103
 
111
- if !options.empty?
112
- helper.create_complete_resource(options)
113
- elsif args[0]
104
+ if args[0]
114
105
  options[:name] = args[0]
115
106
  helper.create_complete_resource(options)
107
+ elsif options[:name]
108
+ helper.create_complete_resource(options)
109
+ else
110
+ STDERR.puts "Please use either a group name or command arguments."<<
111
+ " Run onegroup create -h for more information"
112
+ next -1
116
113
  end
117
114
  end
118
115
 
data/bin/oneshowback CHANGED
@@ -43,6 +43,7 @@ cmd = CommandParser::CmdParser.new(ARGV) do
43
43
  helper=OpenNebulaHelper::OneHelper.new
44
44
 
45
45
  before_proc do
46
+ options[:timeout] = 60 #60 sec
46
47
  helper.set_client(options)
47
48
  end
48
49
 
data/lib/one_helper.rb CHANGED
@@ -417,8 +417,8 @@ EOT
417
417
  else
418
418
  sync = true
419
419
  end
420
-
421
- @@client=OpenNebula::Client.new(secret, endpoint, :sync => sync)
420
+ options[:sync] = sync
421
+ @@client=OpenNebula::Client.new(secret, endpoint, options)
422
422
  end
423
423
  end
424
424
 
@@ -124,7 +124,8 @@ class OneZoneHelper < OpenNebulaHelper::OneHelper
124
124
 
125
125
  next if endpoint.nil?
126
126
 
127
- client = OpenNebula::Client.new(nil, endpoint)
127
+ options[:timeout] = 5 #5 sec
128
+ client = OpenNebula::Client.new(nil, endpoint, options)
128
129
 
129
130
  xml_doc = client.call("zone.raftstatus")
130
131
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opennebula-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.4.3
4
+ version: 5.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenNebula
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-05 00:00:00.000000000 Z
11
+ date: 2017-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opennebula
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 5.4.3
19
+ version: 5.4.4
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 5.4.3
26
+ version: 5.4.4
27
27
  description: Commands used to talk to OpenNebula
28
28
  email: contact@opennebula.org
29
29
  executables: