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

Doesn't support IP address #26

Open
jfbette opened this issue May 23, 2017 · 0 comments
Open

Doesn't support IP address #26

jfbette opened this issue May 23, 2017 · 0 comments

Comments

@jfbette
Copy link

jfbette commented May 23, 2017

Hello,

I am experiencing the following problem when my hostname is an IP address :

ansible-inventory-grapher -i /etc/ansible/hosts 192.168.128.1 -d inventoryGraph --format "test-{hostname}.dot"
Traceback (most recent call last):
File "/bin/ansible-inventory-grapher", line 128, in
main()
File "/bin/ansible-inventory-grapher", line 124, in main
render_graph(arg, options)
File "/bin/ansible-inventory-grapher", line 106, in render_graph
filename = options.format.format(pattern)
KeyError: 'hostname'

whereas the a fdqn it doesn't repport the error.

Tanks

JF

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