summaryrefslogtreecommitdiffstats
path: root/bin/zsh_functions
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2016-01-11 09:28:35 -0500
committerKenny Woodson <kwoodson@redhat.com>2016-01-11 09:52:01 -0500
commit645becf849fecee13d3e0bfcf6f780b3ecdd10de (patch)
treef5fd90d6a5f4bcefacacb1bc67073bfd21dd4d64 /bin/zsh_functions
parent6fa4515290d2a44dfc263f70e862b204a72bb5cd (diff)
downloadopenshift-645becf849fecee13d3e0bfcf6f780b3ecdd10de.tar.gz
openshift-645becf849fecee13d3e0bfcf6f780b3ecdd10de.tar.bz2
openshift-645becf849fecee13d3e0bfcf6f780b3ecdd10de.tar.xz
openshift-645becf849fecee13d3e0bfcf6f780b3ecdd10de.zip
Fixing tab completion for latest metadata changes
Diffstat (limited to 'bin/zsh_functions')
-rw-r--r--bin/zsh_functions/_ossh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/zsh_functions/_ossh b/bin/zsh_functions/_ossh
index e34ca5bd4..65979c58a 100644
--- a/bin/zsh_functions/_ossh
+++ b/bin/zsh_functions/_ossh
@@ -2,7 +2,7 @@
_ossh_known_hosts(){
if [[ -f ~/.ansible/tmp/multi_inventory.cache ]]; then
- print $(/usr/bin/python -c 'import json,os; z = json.loads(open("%s"%os.path.expanduser("~/.ansible/tmp/multi_inventory.cache")).read()); print "\n".join(["%s.%s" % (host["ec2_tag_Name"],host["ec2_tag_env"]) for dns, host in z["_meta"]["hostvars"].items()])')
+ print $(/usr/bin/python -c 'import json,os; z = json.loads(open("%s"%os.path.expanduser("~/.ansible/tmp/multi_inventory.cache")).read()); print "\n".join(["%s.%s" % (host["oo_name"],host["oo_environment"]) for dns, host in z["_meta"]["hostvars"].items()])')
fi
}