Skip to content

Commit 002a787

Browse files
Fix grammar in log message for infra sync (#8589)
* Fix grammar in log message for infra sync * Fix grammar in log message for infra sync * Fix grammar in log message for infra sync --------- Co-authored-by: Reed Hamilton <reedham@amazon.com>
1 parent 265e102 commit 002a787

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

samcli/lib/sync/infra_sync_executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def execute_infra_sync(self, first_sync: bool = False) -> InfraSyncResult:
189189
# We have a threshold on number of sync flows we initiate
190190
# If higher than the threshold, we perform infra sync to improve performance
191191
if len(self.code_sync_resources) < SYNC_FLOW_THRESHOLD:
192-
LOG.info("Template haven't been changed since last deployment, skipping infra sync...")
192+
LOG.info("Template hasn't been changed since last deployment, skipping infra sync...")
193193
EventTracker.track_event("SyncFlowEnd", "SkipInfraSyncExecute", thread_id=thread_id)
194194
return InfraSyncResult(False, self.code_sync_resources)
195195
else:

tests/integration/sync/test_sync_infra.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def test_sync_infra_auto_skip(self, runtime, use_container):
193193
sync_process_execute = run_command_with_input(sync_command_list, "y\n".encode(), cwd=self.test_data_path)
194194
self.assertEqual(sync_process_execute.process.returncode, 0)
195195
self.assertIn(
196-
"Template haven't been changed since last deployment, skipping infra sync...",
196+
"Template hasn't been changed since last deployment, skipping infra sync...",
197197
str(sync_process_execute.stderr),
198198
)
199199
self.assertIn(
@@ -242,7 +242,7 @@ def test_sync_infra_auto_skip_nested(self, runtime, use_container):
242242
sync_process_execute = run_command_with_input(sync_command_list, "y\n".encode(), cwd=self.test_data_path)
243243
self.assertEqual(sync_process_execute.process.returncode, 0)
244244
self.assertIn(
245-
"Template haven't been changed since last deployment, skipping infra sync...",
245+
"Template hasn't been changed since last deployment, skipping infra sync...",
246246
str(sync_process_execute.stderr),
247247
)
248248
self.assertIn(

tests/integration/sync/test_sync_watch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ def test_sync_watch_auto_skip_infra(self):
654654

655655
read_until_string(
656656
self.watch_process,
657-
"Template haven't been changed since last deployment, skipping infra sync...\n",
657+
"Template hasn't been changed since last deployment, skipping infra sync...\n",
658658
timeout=100,
659659
)
660660

0 commit comments

Comments
 (0)