X-Git-Url: https://gerrit.onap.org/r/gitweb?p=vvp%2Fvalidation-scripts.git;a=blobdiff_plain;f=ice_validator%2Fpreload%2Fmodel.py;h=3ca7bdab7a04f04b5fb44220ac8042e1e288e681;hp=db604386c174df643fd025587491413566bb3681;hb=d87106650286493af38cecd423b58bdcead15db4;hpb=b3a5befeb0d5d9e348b1ba7b29f412b15544a0ec diff --git a/ice_validator/preload/model.py b/ice_validator/preload/model.py index db60438..3ca7bda 100644 --- a/ice_validator/preload/model.py +++ b/ice_validator/preload/model.py @@ -251,7 +251,8 @@ def env_path(heat_path): :return: path to env file (assumes it is present and named correctly) """ base_path = os.path.splitext(heat_path)[0] - return "{}.env".format(base_path) + env_path = "{}.env".format(base_path) + return env_path if os.path.exists(env_path) else None class VnfModule(FilterBaseOutputs):