Skip to content

Commit d47d512

Browse files
pre-commit-ci[bot]threcc
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 157bcd2 commit d47d512

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

utilities/certificates_utils.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from simple_logger.logger import get_logger
1010

1111
from utilities.constants import (
12-
ISTIO_CA_BUNDLE_FILENAME,
1312
OPENSHIFT_CA_BUNDLE_FILENAME,
1413
)
1514
from utilities.infra import is_managed_cluster
@@ -26,17 +25,17 @@ def create_ca_bundle_file(client: DynamicClient) -> str:
2625
Returns:
2726
str: The path to the ca bundle file. If cert is not created, return empty string
2827
"""
29-
28+
3029
certs_secret = Secret(
3130
client=client,
3231
name="router-certs-default",
3332
namespace="openshift-ingress",
3433
)
35-
34+
3635
filename = OPENSHIFT_CA_BUNDLE_FILENAME
3736
bundle = base64.b64decode(certs_secret.instance.data["tls.crt"]).decode()
3837
filepath = os.path.join(py_config["tmp_base_dir"], filename)
39-
38+
4039
with open(filepath, "w") as fd:
4140
fd.write(bundle)
4241

0 commit comments

Comments
 (0)