-
Notifications
You must be signed in to change notification settings - Fork 169
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
compose inventory_hostname #1080
Conversation
for host in self._get_hosts(): | ||
if host.get('name'): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
while this looks like a big change in the diff, it's actually just mostly re-indenting the code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
took me a while to comprehend that ;)
this is inspired by the vmware inventory, which supports similar composition |
fwiw lgtm |
user: ansibleinventory | ||
password: changeme | ||
hostnames: | ||
- name.split('.')[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never seen companies putting dots in shortnames. Oh wait ...
bb357f2
to
5195f53
Compare
5195f53
to
568cc01
Compare
Fixes: #1070