From d4ac3457b1207ee0ec0d496f653860c9c36b5aa0 Mon Sep 17 00:00:00 2001 From: Matt Woodson Date: Tue, 1 Mar 2016 14:43:12 -0500 Subject: fixed error in awsutil.py --- bin/openshift_ansible/awsutil.py | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3