Skip to content

Instantly share code, notes, and snippets.

@chadhs

chadhs/output Secret

Created December 15, 2015 17:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chadhs/aaacb715af45bac21808 to your computer and use it in GitHub Desktop.
Save chadhs/aaacb715af45bac21808 to your computer and use it in GitHub Desktop.
salt.state.boto_asg problem
----------
ID: Ensure test-asg exists
Function: boto_asg.present
Name: test-asg
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "/Users/chadhs/.virtualenvs/salt-provision/lib/python2.7/site-packages/salt/state.py", line 1594, in call
**cdata['kwargs'])
File "/Users/chadhs/.virtualenvs/salt-provision/lib/python2.7/site-packages/salt/loader.py", line 1491, in wrapper
return f(*args, **kwargs)
File "/Users/chadhs/.virtualenvs/salt-provision/lib/python2.7/site-packages/salt/states/boto_asg.py", line 411, in present
key, keyid, profile
File "/Users/chadhs/.virtualenvs/salt-provision/lib/python2.7/site-packages/salt/modules/boto_secgroup.py", line 277, in convert_to_group_ids
group_id = get_group_id(group, vpc_id, vpc_name, region, key, keyid, profile)
File "/Users/chadhs/.virtualenvs/salt-provision/lib/python2.7/site-packages/salt/modules/boto_secgroup.py", line 247, in get_group_id
conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
File "/Users/chadhs/.virtualenvs/salt-provision/lib/python2.7/site-packages/salt/utils/boto.py", line 191, in get_connection
keyid, profile)
File "/Users/chadhs/.virtualenvs/salt-provision/lib/python2.7/site-packages/salt/utils/boto.py", line 118, in _get_profile
cxkey = label + hashlib.md5(region + keyid + key).hexdigest()
TypeError: cannot concatenate 'str' and 'NoneType' objects
Started: 11:02:26.885988
Duration: 153.194 ms
Changes:
- vpc_zone_identifier:
- subnet-aaaaaaaa
- subnet-bbbbbbbb
- subnet-cccccccc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment