diff --git a/tmt/utils/__init__.py b/tmt/utils/__init__.py index bc0745e011..cf35c3f27d 100644 --- a/tmt/utils/__init__.py +++ b/tmt/utils/__init__.py @@ -576,7 +576,7 @@ def from_file( content = environment_filepath.read_text() # Parse yaml file - if Path(filename).suffix.lower() in ('yaml', 'yml'): + if Path(filename).suffix.lower() in ('.yaml', '.yml'): environment = cls.from_yaml(content) else: