in radlab-launcher/radlab.py [0:0]
def create_tfvars(env_path, varcontents):
# Check if any variable exist
if (bool(varcontents) == True):
# Creating terraform.tfvars file in deployment folder
f = open(env_path + "/terraform.tfvars", "w+")
for var in varcontents:
f.write(var.strip() + "=" + varcontents[var].strip() + "\n")
f.close()
else:
print("Skipping creation of terraform.tfvars as no input file for variables...")