|
@@ -12,12 +12,15 @@ import subprocess
|
|
import ConfigParser
|
|
import ConfigParser
|
|
|
|
|
|
from openshift_ansible import awsutil
|
|
from openshift_ansible import awsutil
|
|
|
|
+from openshift_ansible import utils
|
|
from openshift_ansible.awsutil import ArgumentError
|
|
from openshift_ansible.awsutil import ArgumentError
|
|
|
|
|
|
CONFIG_MAIN_SECTION = 'main'
|
|
CONFIG_MAIN_SECTION = 'main'
|
|
CONFIG_HOST_TYPE_ALIAS_SECTION = 'host_type_aliases'
|
|
CONFIG_HOST_TYPE_ALIAS_SECTION = 'host_type_aliases'
|
|
CONFIG_INVENTORY_OPTION = 'inventory'
|
|
CONFIG_INVENTORY_OPTION = 'inventory'
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
class Ohi(object):
|
|
class Ohi(object):
|
|
def __init__(self):
|
|
def __init__(self):
|
|
self.inventory = None
|
|
self.inventory = None
|
|
@@ -60,7 +63,7 @@ class Ohi(object):
|
|
# We weren't able to determine what they wanted to do
|
|
# We weren't able to determine what they wanted to do
|
|
raise ArgumentError("Invalid combination of arguments")
|
|
raise ArgumentError("Invalid combination of arguments")
|
|
|
|
|
|
- for host in hosts:
|
|
|
|
|
|
+ for host in sorted(hosts, key=utils.normalize_dnsname):
|
|
print host
|
|
print host
|
|
return 0
|
|
return 0
|
|
|
|
|