opennebula-cli 5.12.3 → 5.12.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: c983e27446fa44ae16be7dd9ab0edc0088a60ada
4
- data.tar.gz: 88f7040d5528afa511e6838cf210fa20d90e4881
3
+ metadata.gz: 806947ac1f01c5fa987378a3391772955b54e2d2
4
+ data.tar.gz: 2c2f5d50a2dcca17e29699e2161a3ee2785ef9e9
5
5
  SHA512:
6
- metadata.gz: dbe1aa18b032fff185982ea8569494f8bde7a12abcadad9c4b47107661f845c11711c3cf4c252be9ce9800f31477d6a5fb7865d59864f356511dbcff9b3f90cb
7
- data.tar.gz: 8f163f00d441e0cbce141ea40f0f5c4478e239ec85fa655055e5ca5d23c099a43d277b8a92223af5d70d119e420fe83a123a883125813ce35a983ba3b3ce0b09
6
+ metadata.gz: d349474f920bd5d31403068e415cef40b53907f298f3c7512bfab0d09f754c25c9c84077978ba5b03d000f63b879b0ff140a878c664f7310a6bacde5c0d7b618
7
+ data.tar.gz: 118f7024189d248b6dfe16d8b6c41e1d3e8a02d720aeadc98eac4447f7efcf27822238473387a7c648071f9111268bc7cc44c69ac2e8ccbf2800cf82d9bd3870
@@ -201,6 +201,10 @@ class OneUserHelper < OpenNebulaHelper::OneHelper
201
201
  login_client = self.get_login_client(username, options)
202
202
  end
203
203
 
204
+ if (login_client.is_a? Array) && login_client[0] == -1
205
+ return login_client
206
+ end
207
+
204
208
  user = OpenNebula::User.new(User.build_xml, login_client)
205
209
 
206
210
  egid = options[:group] || -1
@@ -100,7 +100,8 @@ class OneVMHelper < OpenNebulaHelper::OneHelper
100
100
  if File.file?(o)
101
101
  options[:file] = o
102
102
  else
103
- exit - 1
103
+ STDERR.puts "File `#{options[:file]}` doesn't exist"
104
+ exit(-1)
104
105
  end
105
106
  }
106
107
  }
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.12.3
4
+ version: 5.12.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenNebula
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-02 00:00:00.000000000 Z
11
+ date: 2020-09-23 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.12.3
19
+ version: 5.12.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.12.3
26
+ version: 5.12.4
27
27
  description: Commands used to talk to OpenNebula
28
28
  email: contact@opennebula.io
29
29
  executables:
@@ -78,15 +78,14 @@ files:
78
78
  - bin/onevntemplate
79
79
  - bin/onevrouter
80
80
  - bin/onezone
81
- - lib/cli_helper.rb
82
81
  - lib/command_parser.rb
82
+ - lib/cli_helper.rb
83
83
  - lib/one_helper.rb
84
84
  - lib/one_helper/oneacl_helper.rb
85
85
  - lib/one_helper/onecluster_helper.rb
86
86
  - lib/one_helper/onedatastore_helper.rb
87
87
  - lib/one_helper/onegroup_helper.rb
88
88
  - lib/one_helper/onehook_helper.rb
89
- - lib/one_helper/onehost_helper.rb
90
89
  - lib/one_helper/oneimage_helper.rb
91
90
  - lib/one_helper/onemarket_helper.rb
92
91
  - lib/one_helper/onemarketapp_helper.rb
@@ -105,6 +104,7 @@ files:
105
104
  - lib/one_helper/oneacct_helper.rb
106
105
  - lib/one_helper/oneflow_helper.rb
107
106
  - lib/one_helper/oneflowtemplate_helper.rb
107
+ - lib/one_helper/onehost_helper.rb
108
108
  - lib/one_helper/oneprovision_helper.rb
109
109
  - NOTICE
110
110
  - LICENSE