X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ice_validator%2Fpreload%2Fenvironment.py;fp=ice_validator%2Fpreload%2Fenvironment.py;h=083be9bcf0531b42dd77b315f310fde1eed4e6c4;hb=be181843f2517de647f9dc1b9188b69186051aa6;hp=4851fcb5348cf136326bf2c2d7863c4d689aa9fa;hpb=ff44cf54a9661597443f4f0a9ae9c5328aa4f22e;p=vvp%2Fvalidation-scripts.git diff --git a/ice_validator/preload/environment.py b/ice_validator/preload/environment.py index 4851fcb..083be9b 100644 --- a/ice_validator/preload/environment.py +++ b/ice_validator/preload/environment.py @@ -225,7 +225,7 @@ class PreloadEnvironment: return [e for e in all_envs if e.is_leaf] def get_module(self, name): - name = name if name.lower().endswith(".env") else f"{name}.env".lower() + name = name if name.lower().endswith(".env") else "{}.env".format(name).lower() if name not in self.module_names: return {} result = {}