1. Mikhail Korobov
  2. django-fab-deploy

Commits

Mikhail Korobov  committed 3d723c4

Convert env.conf to _AttributeDict

  • Participants
  • Parent commits d84c000
  • Branches default

Comments (0)

Files changed (1)

File fab_deploy/utils.py

View file
  • Ignore whitespace
 from fabric.context_managers import prefix, cd
 from fabric.contrib.files import upload_template
 from fabric.api import env, run
+from fabric.state import _AttributeDict
 
 def run_as(user):
     def decorator(func):
 
 def update_env():
     HOME_DIR = '/home/%s' % env.user
-
     if 'INSTANCE_NAME' not in env.conf:
         env.conf['INSTANCE_NAME'] = env.user
 
-    defaults = dict(
+    defaults = _AttributeDict(
         HG_BRANCH = 'default',
         DB_NAME = env.conf['INSTANCE_NAME'],
         DB_USER = 'root',