Skip to content

Commit 2b79e0c

Browse files
author
Taniya Mathur
committed
Fix IDPPublisher initialization bug
- Move instance attributes from print_error_summary method to __init__ method - Fixes test_build_and_package_template_respects_checksum unit test failure - Attributes were incorrectly indented and placed in wrong method scope - All unit tests now pass (401 passed, 7 skipped)
1 parent 47e39bc commit 2b79e0c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

publish.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ def __init__(self, verbose=False):
5050
self.prefix_and_version = None
5151
self.version = None
5252
self.build_errors = [] # Track build errors for verbose reporting
53+
self.public_sample_udop_model = ""
54+
self.public = False
55+
self.main_template = "idp-main.yaml"
56+
self.use_container_flag = ""
57+
self.stat_cmd = None
58+
self.s3_client = None
59+
self.cf_client = None
60+
self._print_lock = threading.Lock() # Thread-safe printing
5361

5462
def log_verbose(self, message, style="dim"):
5563
"""Log verbose messages if verbose mode is enabled"""
@@ -89,14 +97,6 @@ def print_error_summary(self):
8997
self.console.print(
9098
f"[dim] ... ({len(error_lines) - 3} more lines, use --verbose for full output)[/dim]"
9199
)
92-
self.public_sample_udop_model = ""
93-
self.public = False
94-
self.main_template = "idp-main.yaml"
95-
self.use_container_flag = ""
96-
self.stat_cmd = None
97-
self.s3_client = None
98-
self.cf_client = None
99-
self._print_lock = threading.Lock() # Thread-safe printing
100100

101101
def thread_safe_print(self, message):
102102
"""Thread-safe print method using Rich console"""

0 commit comments

Comments
 (0)