Skip to content

Commit

Permalink
adding more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
eamonnfaherty committed Jun 4, 2019
1 parent 4508ee2 commit 231a4b7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
venv
venv
.idea
*.iml
ServiceCatalogPuppet/
Expand All @@ -7,3 +7,4 @@ dist
__pycache__
output
.envrc
ignored
4 changes: 4 additions & 0 deletions servicecatalog_puppet/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import copy

import shutil
import json

import click
import pkg_resources
Expand Down Expand Up @@ -210,12 +211,15 @@ def deploy(f, single_account):

all_tasks[f"{task.get('account_id')}-{task.get('region')}-{task.get('launch_name')}"] = task

logger.info(f"Deployment plan: {json.dumps(all_tasks)}")

for task_uid, task in all_tasks.items():
for dependency in task.get('depends_on', []):
for task_uid_2, task_2 in all_tasks.items():
if task_2.get('launch_name') == dependency:
task.get('dependencies').append(task_2)
del task['depends_on']
logger.info(f"Scheduling ProvisionProductTask: {json.dumps(task)}")
tasks_to_run.append(ProvisionProductTask(**task))

luigi.build(
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

setuptools.setup(
name="aws-service-catalog-puppet",
version="0.1.0",
version="0.1.1",
author="Eamonn Faherty",
author_email="aws-service-catalog-tools@amazon.com",
description="Making it easier to deploy ServiceCatalog products",
Expand Down

0 comments on commit 231a4b7

Please sign in to comment.