Add workspace profile support
This commit is contained in:
parent
df6ee33842
commit
de77b18511
1 changed files with 1 additions and 1 deletions
2
atmos.py
2
atmos.py
|
|
@ -18,7 +18,7 @@ def determine_actions(args, params):
|
||||||
cmd = cmd + ' ' + param
|
cmd = cmd + ' ' + param
|
||||||
|
|
||||||
if (args.command in env_actions) and (get_env() != "master"): # Append with env context
|
if (args.command in env_actions) and (get_env() != "master"): # Append with env context
|
||||||
cmd = cmd + ' -var-file=vars/{env}.tfvars'.format(env=get_env())
|
cmd = cmd + ' -var-file=vars/{env}.tfvars -var "workspace={env}"'.format(env=get_env())
|
||||||
|
|
||||||
print('Terraform {args} using env vars in {env}'.format(args=args.command, env=get_env()))
|
print('Terraform {args} using env vars in {env}'.format(args=args.command, env=get_env()))
|
||||||
with subprocess.Popen(shlex.split(cmd)) as proc:
|
with subprocess.Popen(shlex.split(cmd)) as proc:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue