diff options
author | Kenny Woodson <kwoodson@redhat.com> | 2015-11-04 10:13:05 -0500 |
---|---|---|
committer | Kenny Woodson <kwoodson@redhat.com> | 2015-11-04 10:13:05 -0500 |
commit | 9dff4e68bf1e40fac6b8e957f06a06b420a0e887 (patch) | |
tree | 306735f0511870e1a45ddc7d5d78ba663bd166d4 /bin/zsh_functions | |
parent | e275c1d17872f9727af3ac63ebae2d8a1b088649 (diff) | |
parent | 4b85e4fae04a71cf2cea17018b9240b369f145d5 (diff) | |
download | openshift-9dff4e68bf1e40fac6b8e957f06a06b420a0e887.tar.gz openshift-9dff4e68bf1e40fac6b8e957f06a06b420a0e887.tar.bz2 openshift-9dff4e68bf1e40fac6b8e957f06a06b420a0e887.tar.xz openshift-9dff4e68bf1e40fac6b8e957f06a06b420a0e887.zip |
Merge pull request #793 from kwoodson/multiinventory
Renamed multi_ec2 to multi_inventory. Adding support for gce to mult_inventory.
Diffstat (limited to 'bin/zsh_functions')
-rw-r--r-- | bin/zsh_functions/_ossh | 4 |
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 } |