X-Git-Url: https://gerrit.onap.org/r/gitweb?p=vvp%2Fvalidation-scripts.git;a=blobdiff_plain;f=ice_validator%2Fpreload%2Fenvironment.py;h=120e3c8240299e106d095ccb77989a2710d731e4;hp=6d8d7c3e245b16fc7ca5afc1688c22e2164f8bf0;hb=4c2a2033d927552f7e9281e516afba38f146c242;hpb=81e7158ad5e4b0b5996931642bd19c85f2b3cb6e diff --git a/ice_validator/preload/environment.py b/ice_validator/preload/environment.py index 6d8d7c3..120e3c8 100644 --- a/ice_validator/preload/environment.py +++ b/ice_validator/preload/environment.py @@ -51,7 +51,7 @@ class CloudServiceArchive: :param vf_module: name of Heat module (no path or file extension) :return: The definition of the module as a dict or None if not found """ - if( + if ( vf_module.endswith(".env") or vf_module.endswith(".yaml") or vf_module.endswith(".yml") @@ -293,7 +293,6 @@ class PreloadEnvironment: class EnvironmentFilePreloadInstance(AbstractPreloadInstance): - def __init__(self, env: PreloadEnvironment, module_label: str, module_params: dict): self.module_params = module_params self._module_label = module_label @@ -397,7 +396,6 @@ class EnvironmentFilePreloadInstance(AbstractPreloadInstance): class EnvironmentFileDataSource(AbstractPreloadDataSource): - def __init__(self, path: Path): super().__init__(path) check(path.is_dir(), f"{path} must be an existing directory")