summaryrefslogtreecommitdiffstats
path: root/bin/ohi
diff options
context:
space:
mode:
authorMatt Woodson <mwoodson@redhat.com>2016-03-01 12:28:55 -0500
committerMatt Woodson <mwoodson@redhat.com>2016-03-01 14:00:03 -0500
commit5335c1660445b8128932c484f8667f966f95f34b (patch)
treefdd448ec26fb3902e359ade6a100fe69ad7358c1 /bin/ohi
parentfadad1f7e1934ab5542eae320af6fdaca7024479 (diff)
downloadopenshift-5335c1660445b8128932c484f8667f966f95f34b.tar.gz
openshift-5335c1660445b8128932c484f8667f966f95f34b.tar.bz2
openshift-5335c1660445b8128932c484f8667f966f95f34b.tar.xz
openshift-5335c1660445b8128932c484f8667f966f95f34b.zip
ohi: added subtype searching
Diffstat (limited to 'bin/ohi')
-rwxr-xr-xbin/ohi4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/ohi b/bin/ohi
index f9e76b783..9c2ce8432 100755
--- a/bin/ohi
+++ b/bin/ohi
@@ -34,6 +34,7 @@ class Ohi(object):
'openshift_ansible', \
'openshift_ansible.conf')
+ self.args = None
self.parse_cli_args()
self.parse_config_file()
@@ -57,6 +58,7 @@ class Ohi(object):
hosts = self.aws.get_host_list(clusters=self.args.cluster,
host_type=self.args.host_type,
+ sub_host_type=self.args.sub_host_type,
envs=self.args.env,
version=version,
cached=self.args.cache_only)
@@ -104,6 +106,8 @@ class Ohi(object):
parser.add_argument('-t', '--host-type', action="store", help="Which host type to use")
+ parser.add_argument('-s', '--sub-host-type', action="store", help="Which sub host type to use")
+
parser.add_argument('-l', '--user', action='store', default=None, help='username')
parser.add_argument('--cache-only', action='store_true', default=False,