summaryrefslogtreecommitdiffstats
path: root/bin/ohi
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2016-01-29 15:37:16 -0500
committerKenny Woodson <kwoodson@redhat.com>2016-01-29 16:17:16 -0500
commit303305a3789d65e026db01f318647a036ddfa5ef (patch)
tree75bcbb033a873882dffc01a8d96d3bf8af65d84c /bin/ohi
parent7345fcf2a00e3011599b2b04a42b99ae707e7484 (diff)
downloadopenshift-303305a3789d65e026db01f318647a036ddfa5ef.tar.gz
openshift-303305a3789d65e026db01f318647a036ddfa5ef.tar.bz2
openshift-303305a3789d65e026db01f318647a036ddfa5ef.tar.xz
openshift-303305a3789d65e026db01f318647a036ddfa5ef.zip
Adding ip address option
Diffstat (limited to 'bin/ohi')
-rwxr-xr-xbin/ohi6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/ohi b/bin/ohi
index d71a4c4b1..f9e76b783 100755
--- a/bin/ohi
+++ b/bin/ohi
@@ -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')