diff options
author | 2018-08-14 09:23:10 +0000 | |
---|---|---|
committer | 2018-08-14 09:23:10 +0000 | |
commit | 381a1df096e1f358bef8de1dbaa7593379357f22 (patch) | |
tree | 2bb83c7481f7333e6983a1e981a7137606c770fa /deploy/config_parse.py | |
parent | d1005a8f88160342c907b383a1005b85b5bc9308 (diff) | |
parent | 2fff43c7d76c7cbd1297ac1fedd6f08270c97391 (diff) |
Merge "Get VIRT_NUMBER from DHA file"
Diffstat (limited to 'deploy/config_parse.py')
-rw-r--r-- | deploy/config_parse.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/deploy/config_parse.py b/deploy/config_parse.py index 3ee0d864..9cdf1acb 100644 --- a/deploy/config_parse.py +++ b/deploy/config_parse.py @@ -127,6 +127,9 @@ def export_dha_file(dha, dha_file, ofile): if len(value) > 0: env.update({'HOST_MACS': value}) + if dha.get('TYPE', "virtual") == "virtual": + env.update({'VIRT_NUMBER': len(dha['hosts'])}) + export_env_dict(env, ofile) |