mirror of
https://github.com/apache/nifi.git
synced 2025-02-07 18:48:51 +00:00
NIFI-6913: PutAzureBlobStorage processor will create container if not exists
Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com> This closes #4237.
This commit is contained in:
parent
647a9a60b7
commit
851359c1fc
@ -75,6 +75,7 @@ public class PutAzureBlobStorage extends AbstractAzureBlobProcessor {
|
||||
try {
|
||||
CloudBlobClient blobClient = AzureStorageUtils.createCloudBlobClient(context, getLogger(), flowFile);
|
||||
CloudBlobContainer container = blobClient.getContainerReference(containerName);
|
||||
container.createIfNotExists();
|
||||
|
||||
CloudBlob blob = container.getBlockBlobReference(blobPath);
|
||||
|
||||
|
@ -88,7 +88,7 @@ public final class AzureStorageUtils {
|
||||
public static final PropertyDescriptor CONTAINER = new PropertyDescriptor.Builder()
|
||||
.name("container-name")
|
||||
.displayName("Container Name")
|
||||
.description("Name of the Azure storage container")
|
||||
.description("Name of the Azure storage container. In case of PutAzureBlobStorage processor, container will be created if it does not exist.")
|
||||
.addValidator(StandardValidators.NON_EMPTY_VALIDATOR)
|
||||
.expressionLanguageSupported(ExpressionLanguageScope.FLOWFILE_ATTRIBUTES)
|
||||
.required(true)
|
||||
|
Loading…
x
Reference in New Issue
Block a user