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

Commit

Permalink
Sane default for template locations.
Browse files Browse the repository at this point in the history
Since the plan is to use bootstrap-cfn with template-deploy it makes
sense to set the default location to be the location where
template-deploy stores the yaml files.
  • Loading branch information
koikonom committed Apr 10, 2015
1 parent 78707b7 commit 8c0328a
Showing 1 changed file with 7 additions and 7 deletions.
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')
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

0 comments on commit 8c0328a

Please sign in to comment.