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

Commit

Permalink
Make fabric env overridable
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanying committed Oct 30, 2017
1 parent bd31bc1 commit be67523
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions remora/fab/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ def construct_env(env_data, default_env_data=None):

env_data = merge_dicts(env_data, default_env_data)
env['configs'] = env_data
fabric_override = env_data.get('fabric', None)
if fabric_override is not None:
for k, v in fabric_override.items():
env[k] = v
env['user'] = env_data.get('user', None)
roledefs = env_data.get('roledefs', None)
del env_data['roledefs']
Expand Down

0 comments on commit be67523

Please sign in to comment.