summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMatt Woodson <mwoodson@redhat.com>2016-03-01 14:43:12 -0500
committerMatt Woodson <mwoodson@redhat.com>2016-03-01 14:43:12 -0500
commitd4ac3457b1207ee0ec0d496f653860c9c36b5aa0 (patch)
tree762659fdfa551f2265e7d1ed402652d80292a920 /bin
parent5335c1660445b8128932c484f8667f966f95f34b (diff)
downloadopenshift-d4ac3457b1207ee0ec0d496f653860c9c36b5aa0.tar.gz
openshift-d4ac3457b1207ee0ec0d496f653860c9c36b5aa0.tar.bz2
openshift-d4ac3457b1207ee0ec0d496f653860c9c36b5aa0.tar.xz
openshift-d4ac3457b1207ee0ec0d496f653860c9c36b5aa0.zip
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