Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Includes a empty hosts file drop all hosts #374

Open
jeffrey4l opened this issue Oct 26, 2020 · 0 comments
Open

Includes a empty hosts file drop all hosts #374

jeffrey4l opened this issue Oct 26, 2020 · 0 comments

Comments

@jeffrey4l
Copy link

when includes multi yaml files and when one file has a empty file like below, it will remove all hosts before this file.

# ~/.ssh/assh.yml
inclues:
  - ~/.ssh/assh.d/*.yml
# ~/.ssh/assh.d/temp.yml
hosts: 
DEBUG	Loading config file	{"file": "/home/xxx/.ssh/assh.d/openstack.yml"}
DEBUG	Loaded config file	{"file": "/home/xxx/.ssh/assh.d/openstack.yml", "num-host-before": 130, "num-host-after": 131, "num-host-diff": 1}
DEBUG	Loading config file	{"file": "/home/xxx/.ssh/assh.d/temp.yml"}
DEBUG	Loaded config file	{"file": "/home/xxx/.ssh/assh.d/temp.yml", "num-host-before": 131, "num-host-after": 0, "num-host-diff": -131}
DEBUG	Loading config file	{"file": "/home/xxx/.ssh/assh.d/tt.yml"}
DEBUG	Loaded config file	{"file": "/home/xxx/.ssh/assh.d/tt.yml", "num-host-before": 0, "num-host-after": 9, "num-host-diff": 9}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant