Skip to content

Commit 0103129

Browse files
committed
Improve logging for 'buildfed' tool
1 parent 551fb32 commit 0103129

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
.policystudio
44
.vscode
55
.projdeps.json
6+
*.class
67
target

src/main/resources/scripts/lib/fedconfig.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ def __configure_certificates(self):
199199
cert = None
200200

201201
for cert_ref in certs:
202+
logging.info("Process alias '%s' (%s): %s" % (cert_ref.get_alias(), cert_ref.get_type(), cert_ref.get_file()))
202203
if cert_ref.get_type() == "crt":
203204
cf = CertificateFactory.getInstance("X.509")
204205
if os.path.isfile(cert_ref.get_file()):
@@ -212,7 +213,7 @@ def __configure_certificates(self):
212213
else:
213214
raise ValueError("Certificate file not found for alias '%s': %s" % (cert_ref.get_alias(), cert_ref.get_file()))
214215
elif cert_ref.get_type() == "p12":
215-
if os.path.isfile(cert_ref.get_file()):
216+
if os.path.isfile(cert_ref.get_file()):
216217
key = self.__get_key_from_p12(cert_ref.get_file(), cert_ref.get_password())
217218
cert = self.__get_cert_from_p12(cert_ref.get_file(), cert_ref.get_password())
218219
self.__add_or_replace_certificate(es, cert_ref.get_alias(), cert, key)

0 commit comments

Comments
 (0)