diff options
author | Thomas Wiest <twiest@users.noreply.github.com> | 2015-05-01 17:16:51 -0400 |
---|---|---|
committer | Thomas Wiest <twiest@users.noreply.github.com> | 2015-05-01 17:16:51 -0400 |
commit | b6b53398a023ffef8b5c6e90fb6228f3bee69470 (patch) | |
tree | d70d3f3e6e54765082153bcf75c01750895115ef /bin/ohi | |
parent | 5da7d14ef47e7f5f8f5d93474ab77d2aec8cdca5 (diff) | |
parent | dad421c863006f9774f2fed9fc32f3de8f871af6 (diff) | |
download | openshift-b6b53398a023ffef8b5c6e90fb6228f3bee69470.tar.gz openshift-b6b53398a023ffef8b5c6e90fb6228f3bee69470.tar.bz2 openshift-b6b53398a023ffef8b5c6e90fb6228f3bee69470.tar.xz openshift-b6b53398a023ffef8b5c6e90fb6228f3bee69470.zip |
Merge pull request #200 from twiest/pr
Added utils.py that contains a normalize_dnsname function good for sorting dns names to a human readable list.
Diffstat (limited to 'bin/ohi')
-rwxr-xr-x | bin/ohi | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -12,12 +12,15 @@ import subprocess import ConfigParser from openshift_ansible import awsutil +from openshift_ansible import utils from openshift_ansible.awsutil import ArgumentError CONFIG_MAIN_SECTION = 'main' CONFIG_HOST_TYPE_ALIAS_SECTION = 'host_type_aliases' CONFIG_INVENTORY_OPTION = 'inventory' + + class Ohi(object): def __init__(self): self.inventory = None @@ -60,7 +63,7 @@ class Ohi(object): # We weren't able to determine what they wanted to do raise ArgumentError("Invalid combination of arguments") - for host in hosts: + for host in sorted(hosts, key=utils.normalize_dnsname): print host return 0 |