diff options
author | Kenny Woodson <kwoodson@redhat.com> | 2016-01-29 16:23:34 -0500 |
---|---|---|
committer | Kenny Woodson <kwoodson@redhat.com> | 2016-01-29 16:23:34 -0500 |
commit | c44eafff52cf5ac862f3f3f8eee115ee991bc599 (patch) | |
tree | 7c6b918bceeaadb4dcfe4061df7d3a7936a26148 /bin/ohi | |
parent | 3d72d46b4e5447b80100464da4aa7ac0fa111a3c (diff) | |
parent | 303305a3789d65e026db01f318647a036ddfa5ef (diff) | |
download | openshift-c44eafff52cf5ac862f3f3f8eee115ee991bc599.tar.gz openshift-c44eafff52cf5ac862f3f3f8eee115ee991bc599.tar.bz2 openshift-c44eafff52cf5ac862f3f3f8eee115ee991bc599.tar.xz openshift-c44eafff52cf5ac862f3f3f8eee115ee991bc599.zip |
Merge pull request #1313 from kwoodson/ohi_ips
ohi supports ip now.
Diffstat (limited to 'bin/ohi')
-rwxr-xr-x | bin/ohi | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -65,6 +65,9 @@ class Ohi(object): # We weren't able to determine what they wanted to do raise ArgumentError("Invalid combination of arguments") + if self.args.ip: + hosts = self.aws.convert_to_ip(hosts) + for host in sorted(hosts, key=utils.normalize_dnsname): if self.args.user: print "%s@%s" % (self.args.user, host) @@ -112,6 +115,9 @@ class Ohi(object): parser.add_argument('--v3', action='store_true', default=False, help='Specify the openshift version.') + parser.add_argument('--ip', action='store_true', default=False, + help='Return ip address only.') + parser.add_argument('--all-versions', action='store_true', default=False, help='Specify the openshift version. Return all versions') |