fluent-plugin-openstack 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/fluent-plugin-openstack.gemspec +1 -0
- data/lib/fluent/plugin/out_swift.rb +8 -11
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5b0999e4c402c8052c252104dbdea3054fbf4fd3c22fe65a9eb7f863c42f412
|
4
|
+
data.tar.gz: d735ef8c85fc5379dff57ea76244f497f62c4cef8a4191bae5f29c46bce097d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a58dd035929572ba6d83048c3cb4cb22a6f41ffbc0a6ffcc75ce35d94a746c8a839bec51ee61fbb68314f91e34b2f8c1d5e7fdb00240b47284376299100d2bf
|
7
|
+
data.tar.gz: a007de4d5abd83ce01e3c870fdc808434a66d85e3a01819c1e38b253c7e501171300407ecf8eee9004b32fd361160f9c67848dc5914d4c807f58a14824dc5d3e
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
@@ -17,6 +17,7 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
18
18
|
gem.require_paths = ['lib']
|
19
19
|
|
20
|
+
gem.add_runtime_dependency 'activesupport'
|
20
21
|
gem.add_runtime_dependency 'fluentd', ['>= 0.14.2', '< 2']
|
21
22
|
gem.add_runtime_dependency 'fog-openstack'
|
22
23
|
gem.add_runtime_dependency 'uuidtools'
|
@@ -7,6 +7,7 @@ require 'zlib'
|
|
7
7
|
require 'time'
|
8
8
|
require 'tempfile'
|
9
9
|
require 'open3'
|
10
|
+
require 'active_support/all'
|
10
11
|
|
11
12
|
module Fluent::Plugin
|
12
13
|
class SwiftOutput < Output
|
@@ -140,12 +141,10 @@ module Fluent::Plugin
|
|
140
141
|
openstack_domain_name: domain_name,
|
141
142
|
openstack_region: auth_region
|
142
143
|
)
|
143
|
-
rescue StandardError =>
|
144
|
-
raise "Can't call Swift API. Please check your ENV OS_*, your credentials or auth_url configuration. Error: #{
|
145
|
-
end
|
146
|
-
if swift_account
|
147
|
-
storage.change_account(swift_account)
|
144
|
+
rescue StandardError => e
|
145
|
+
raise "Can't call Swift API. Please check your ENV OS_*, your credentials or auth_url configuration. Error: #{e.inspect}"
|
148
146
|
end
|
147
|
+
storage.change_account(swift_account) if swift_account
|
149
148
|
check_container
|
150
149
|
super
|
151
150
|
end
|
@@ -303,12 +302,10 @@ module Fluent::Plugin
|
|
303
302
|
end
|
304
303
|
|
305
304
|
def check_object_exists(object:)
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
false
|
311
|
-
end
|
305
|
+
storage.head_object(swift_container, object)
|
306
|
+
true
|
307
|
+
rescue Fog::OpenStack::Storage::NotFound
|
308
|
+
false
|
312
309
|
end
|
313
310
|
end
|
314
311
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-openstack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- brissenden
|
@@ -10,6 +10,20 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2019-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: fluentd
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|