File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -158,6 +158,9 @@ def get_detach_signature_command(self) -> str:
158158 def is_aws_cf_enable (self ) -> bool :
159159 return self .__aws_cf_enable
160160
161+ def is_radas_enabled (self ) -> bool :
162+ return bool (self .__radas_config__ and self .__radas_config__ .validate ())
163+
161164 def get_radas_config (self ) -> Optional [RadasConfig ]:
162165 return self .__radas_config__
163166
Original file line number Diff line number Diff line change @@ -416,8 +416,7 @@ def handle_maven_uploading(
416416 if not conf :
417417 sys .exit (1 )
418418
419- rconf = conf .get_radas_config ()
420- if rconf and rconf .validate ():
419+ if conf .is_radas_enabled ():
421420 logger .info ("Start generating radas signature files for s3 bucket %s\n " , bucket_name )
422421 (_failed_metas , _generated_signs ) = radas_signature .generate_radas_sign (
423422 top_level = top_level , sign_result_loc = sign_result_loc
You can’t perform that action at this time.
0 commit comments