File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -72,9 +72,9 @@ pub struct AzureBlobConfig {
72
72
long,
73
73
env = "P_AZR_ACCESS_KEY" ,
74
74
value_name = "access-key" ,
75
- required = true
75
+ required = false
76
76
) ]
77
- pub access_key : String ,
77
+ pub access_key : Option < String > ,
78
78
79
79
///Client ID
80
80
#[ arg(
@@ -123,9 +123,12 @@ impl AzureBlobConfig {
123
123
let mut builder = MicrosoftAzureBuilder :: new ( )
124
124
. with_endpoint ( self . endpoint_url . clone ( ) )
125
125
. with_account ( & self . account )
126
- . with_access_key ( & self . access_key )
127
126
. with_container_name ( & self . container ) ;
128
127
128
+ if let Some ( access_key) = self . access_key . clone ( ) {
129
+ builder = builder. with_access_key ( access_key)
130
+ }
131
+
129
132
if let ( Some ( client_id) , Some ( client_secret) , Some ( tenant_id) ) = (
130
133
self . client_id . clone ( ) ,
131
134
self . client_secret . clone ( ) ,
You can’t perform that action at this time.
0 commit comments