summaryrefslogtreecommitdiffstats
path: root/bin/zsh_functions
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2015-11-02 16:03:33 -0500
committerKenny Woodson <kwoodson@redhat.com>2015-11-03 16:57:22 -0500
commit4b85e4fae04a71cf2cea17018b9240b369f145d5 (patch)
tree6b917d6f4d0e84a49e10f9eaa3ca70efc8e3a106 /bin/zsh_functions
parenta4d5e59c413746cb1715b15a9e158be3f3a94a54 (diff)
downloadopenshift-4b85e4fae04a71cf2cea17018b9240b369f145d5.tar.gz
openshift-4b85e4fae04a71cf2cea17018b9240b369f145d5.tar.bz2
openshift-4b85e4fae04a71cf2cea17018b9240b369f145d5.tar.xz
openshift-4b85e4fae04a71cf2cea17018b9240b369f145d5.zip
Support for gce
Diffstat (limited to 'bin/zsh_functions')
-rw-r--r--bin/zsh_functions/_ossh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/zsh_functions/_ossh b/bin/zsh_functions/_ossh
index 7c6cb7b0b..d205e1055 100644
--- a/bin/zsh_functions/_ossh
+++ b/bin/zsh_functions/_ossh
@@ -1,8 +1,8 @@
#compdef ossh oscp
_ossh_known_hosts(){
- if [[ -f ~/.ansible/tmp/multi_ec2_inventory.cache ]]; then
- print $(/usr/bin/python -c 'import json,os; z = json.loads(open("%s"%os.path.expanduser("~/.ansible/tmp/multi_ec2_inventory.cache")).read()); print "\n".join(["%s.%s" % (host["ec2_tag_Name"],host["ec2_tag_environment"]) for dns, host in z["_meta"]["hostvars"].items()])')
+ 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_environment"]) for dns, host in z["_meta"]["hostvars"].items()])')
fi
}