Skip to content

Commit 193359f

Browse files
committed
fixing #702
1 parent 1562d08 commit 193359f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

servicecatalog_puppet/workflow/portfolio/portfolio_management/copy_into_spoke_local_portfolio_task.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,18 @@ def run(self):
129129
)
130130
self.info("Finished associating products")
131131

132+
throttle = 0
132133
for product_id, product_details in versions_requiring_updates.items():
133134
for version_id, version_details in product_details.items():
134135
servicecatalog.update_provisioning_artifact(
135136
ProductId=product_id,
136137
ProvisioningArtifactId=version_id,
137138
**version_details,
138139
)
140+
throttle += 1
141+
if throttle == 4:
142+
time.sleep(1.1)
143+
throttle = 0
139144
self.info("Finished updating versions that were copied")
140145

141146
products_to_check = list(products_requiring_adding_to_portfolio.values())

0 commit comments

Comments
 (0)