opennebula-cli 5.9.80.pre → 5.9.90.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/oneuser +4 -4
- data/bin/onevcenter +31 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89deb7bde07744a39e3fb08443536572d39c0180
|
4
|
+
data.tar.gz: 639c040c1c34e1f05ef9cc46d19624939e54e3ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffe964f66de9d35956ed92c555a9c29750e04c5a7f20f25b9aac30551ec291bf87127fa060951608f903a6eb19daaa0b47f7f09b05e4b0127f4a1d9ab57e0bb9
|
7
|
+
data.tar.gz: 7b49d3dc4b0a8f37c02db5341c4f996aacc72e4fa5ce5e77f3256fbf924947ddce95f12826aae29fd48d44445beae109365eb7666020178fb57358dc5ea39330
|
data/bin/oneuser
CHANGED
@@ -708,12 +708,12 @@ CommandParser::CmdParser.new(ARGV) do
|
|
708
708
|
auth_string = "#{user['NAME']}:#{token}"
|
709
709
|
auth_file = helper.auth_file(auth_string)
|
710
710
|
|
711
|
-
# rubocop:disable HandleExceptions
|
711
|
+
# rubocop:disable Lint/HandleExceptions
|
712
712
|
begin
|
713
713
|
FileUtils.mkdir_p(File.dirname(auth_file))
|
714
714
|
rescue Errno::EEXIST
|
715
715
|
end
|
716
|
-
# rubocop:enable HandleExceptions
|
716
|
+
# rubocop:enable Lint/HandleExceptions
|
717
717
|
|
718
718
|
file = File.open(auth_file, 'w')
|
719
719
|
file.write(auth_string)
|
@@ -776,13 +776,13 @@ CommandParser::CmdParser.new(ARGV) do
|
|
776
776
|
auth_string = "#{user['NAME']}:#{token}"
|
777
777
|
auth_file = helper.auth_file(auth_string)
|
778
778
|
|
779
|
-
# rubocop:disable HandleExceptions
|
779
|
+
# rubocop:disable Lint/HandleExceptions
|
780
780
|
begin
|
781
781
|
File.unlink(auth_file)
|
782
782
|
puts "Removing #{auth_file}"
|
783
783
|
rescue Errno::ENOENT
|
784
784
|
end
|
785
|
-
# rubocop:enable HandleExceptions
|
785
|
+
# rubocop:enable Lint/HandleExceptions
|
786
786
|
|
787
787
|
0
|
788
788
|
end
|
data/bin/onevcenter
CHANGED
@@ -152,6 +152,37 @@ CommandParser::CmdParser.new(ARGV) do
|
|
152
152
|
:options => [OBJECT, HOST, DATASTORE, VCENTER, USER, PASS] do
|
153
153
|
begin
|
154
154
|
args = helper.parse_opts(options)
|
155
|
+
args[:filter] = true
|
156
|
+
vi_client = VCenterDriver::VIClient.new_from_host(options[:host])
|
157
|
+
importer = VCenterDriver::VcImporter
|
158
|
+
.new_child(helper.client, vi_client, options[:object])
|
159
|
+
|
160
|
+
list = importer.retrieve_resources(args)
|
161
|
+
|
162
|
+
helper.list_object(options, list)
|
163
|
+
rescue StandardError => e
|
164
|
+
puts e.message
|
165
|
+
end
|
166
|
+
|
167
|
+
exit 0
|
168
|
+
end
|
169
|
+
|
170
|
+
list_desc = <<-EOT.unindent
|
171
|
+
Show a list with unimported vCenter objects excluding all filters
|
172
|
+
|
173
|
+
Examples:
|
174
|
+
- listing networks including uplinks:
|
175
|
+
|
176
|
+
onevcenter list_all -o networks -h <host_id>
|
177
|
+
|
178
|
+
EOT
|
179
|
+
|
180
|
+
command :list_all,
|
181
|
+
list_desc,
|
182
|
+
:options => [OBJECT, HOST, DATASTORE, VCENTER, USER, PASS] do
|
183
|
+
begin
|
184
|
+
args = helper.parse_opts(options)
|
185
|
+
args[:filter] = false
|
155
186
|
vi_client = VCenterDriver::VIClient.new_from_host(options[:host])
|
156
187
|
importer = VCenterDriver::VcImporter
|
157
188
|
.new_child(helper.client, vi_client, options[:object])
|
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.9.
|
4
|
+
version: 5.9.90.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenNebula
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10
|
11
|
+
date: 2019-11-10 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.9.
|
19
|
+
version: 5.9.90.pre
|
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.9.
|
26
|
+
version: 5.9.90.pre
|
27
27
|
description: Commands used to talk to OpenNebula
|
28
28
|
email: contact@opennebula.org
|
29
29
|
executables:
|