We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08e0798 commit 5e530c0Copy full SHA for 5e530c0
sshgen/utils/file.py
@@ -16,7 +16,7 @@ def get_hosts_path(file_path: str) -> Path:
16
CommonUtils.check_and_exit(resolved_path.exists(),
17
f'Ansible hosts file does not exists at {resolved_path}. Exiting...')
18
CommonUtils.check_and_exit(FileUtils.is_yaml_file(resolved_path),
19
- 'Ansible hosts file is not a yaml file. Valid extensions are: yaml or yml.'
+ 'Ansible hosts file is not a yaml file. Valid extensions are: yaml or yml. '
20
'Exiting...')
21
CommonUtils.check_and_exit(not FileUtils.is_empty(resolved_path),
22
f'Ansible hosts file {resolved_path} is empty. Exiting...')
0 commit comments