Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
kk
tower
Commits
c6ec801f
Commit
c6ec801f
authored
Dec 22, 2016
by
Aleksey Shirokih
Browse files
pretty keys print
parent
4e555352
Changes
1
Hide whitespace changes
Inline
Side-by-side
tower/cli/inv.py
View file @
c6ec801f
...
...
@@ -58,6 +58,6 @@ def ansible_list(options, args):
"""
try
:
env
=
Environment
.
get
(
Environment
.
name
==
options
.
env
)
print
json
.
dumps
(
env
.
ansible_inventory
())
print
json
.
dumps
(
env
.
ansible_inventory
()
,
sort_keys
=
True
)
except
Environment
.
DoesNotExist
:
die
(
"Invalid environment: '%s'"
%
options
.
env
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment