Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit e30393a

Browse files
committed
Secret parameter validation added
1 parent 1ac12ae commit e30393a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/fluent/plugin/out_azure-storage-append-blob.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ def configure(conf)
5757
if @azure_container.nil?
5858
raise ConfigError, 'azure_container is needed'
5959
end
60+
61+
if @azure_storage_access_key.nil? || @azure_storage_sas_token.nil?
62+
raise ConfigError, "either 'azure_storage_access_key' or 'azure_storage_sas_token' parameter must be provided"
63+
end
6064
end
6165

6266
def multi_workers_ready?

0 commit comments

Comments
 (0)