Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Sane default for template locations. #69

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions bootstrap_cfn/fab_tasks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python

import os
import os.path
from StringIO import StringIO
import sys
import random
Expand All @@ -16,21 +17,20 @@
from bootstrap_cfn.iam import IAM


# This is needed because pkgutil wont pick up modules
# imported in a fabfile.
path = env.real_fabfile or os.getcwd()
sys.path.append(os.path.dirname(path))

# GLOBAL VARIABLES
env.application = None
env.environment = None
env.aws = None
env.config = None
env.password = None
env.config = os.path.join(path, 'cloudformation', 'template.yaml')
env.password = os.path.join(path, 'cloudformation', 'template-secrets.yaml')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These belong in the fabfile.py in template deploy, not in here.

TIMEOUT = 3600
RETRY_INTERVAL = 10

# This is needed because pkgutil wont pick up modules
# imported in a fabfile.
path = env.real_fabfile or os.getcwd()
sys.path.append(os.path.dirname(path))


@task
def aws(x):
Expand Down