Skip to content

Commit

Permalink
Merge pull request #102 from Dklotz-Circle/FixIntInConvertCFTypes
Browse files Browse the repository at this point in the history
Adding in sanitization for ints in iterable objects. Fix for issue #86
  • Loading branch information
Jorge Bastida committed Apr 6, 2017
2 parents 7382211 + 2f935bb commit 5289cf3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gordon/utils.py
Expand Up @@ -187,7 +187,7 @@ def convert_cloudformation_types(data):
cf_data = {}
for k, v in six.iteritems(data):
if isinstance(v, Iterable) and not isinstance(v, six.string_types):
cf_data[k] = ', '.join(v)
cf_data[k] = ', '.join([repr(v)])
else:
cf_data[k] = v
return cf_data
Expand Down Expand Up @@ -232,8 +232,8 @@ def generate_stack_name(stage, project_name, step):


def valid_cloudformation_name(*elements):
"""Generete a valid CloudFormation name using ``elements``
Because Resource names in AWS are truncaded, we try to respect up to 7
"""Generate a valid CloudFormation name using ``elements``
Because Resource names in AWS are truncated, we try to respect up to 7
characters per group, except for the last one, which hopefully is the
most representative one
"""
Expand Down

0 comments on commit 5289cf3

Please sign in to comment.