Commits

Mikhail Korobov committed 3d723c4

Convert env.conf to _AttributeDict

Comments (0)

Files changed (1)

fab_deploy/utils.py

 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',