summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMatt Woodson <mwoodson@gmail.com>2016-03-01 14:44:12 -0500
committerMatt Woodson <mwoodson@gmail.com>2016-03-01 14:44:12 -0500
commit2dad7746d7b5f4673bfd885529ef0434f37612b2 (patch)
treeacb736c61ef9fe573660c75272ffde239d9cfd87 /bin
parenta8d62f50d897454615a86c4ce53cedfc61c6315d (diff)
parentd4ac3457b1207ee0ec0d496f653860c9c36b5aa0 (diff)
downloadopenshift-2dad7746d7b5f4673bfd885529ef0434f37612b2.tar.gz
openshift-2dad7746d7b5f4673bfd885529ef0434f37612b2.tar.bz2
openshift-2dad7746d7b5f4673bfd885529ef0434f37612b2.tar.xz
openshift-2dad7746d7b5f4673bfd885529ef0434f37612b2.zip
Merge pull request #1531 from mwoodson/ohi_fix
ohi: fixed error in awsutil.py
Diffstat (limited to 'bin')
-rw-r--r--bin/openshift_ansible/awsutil.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/openshift_ansible/awsutil.py b/bin/openshift_ansible/awsutil.py
index d46af3d66..eba11e851 100644
--- a/bin/openshift_ansible/awsutil.py
+++ b/bin/openshift_ansible/awsutil.py
@@ -31,17 +31,16 @@ class AwsUtil(object):
host_type_aliases -- a list of aliases to common host-types (e.g. ex-node)
"""
+ self.alias_lookup = {}
host_type_aliases = host_type_aliases or {}
self.host_type_aliases = host_type_aliases
self.file_path = os.path.join(os.path.dirname(os.path.realpath(__file__)))
self.setup_host_type_alias_lookup()
- self.alias_lookup = None
def setup_host_type_alias_lookup(self):
"""Sets up the alias to host-type lookup table."""
- self.alias_lookup = {}
for key, values in self.host_type_aliases.iteritems():
for value in values:
self.alias_lookup[value] = key