Skip to content

Commit

Permalink
Support 17-character IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
techhat committed Jan 22, 2016
1 parent 05d0526 commit a95fbff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/cloud/clouds/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -3104,7 +3104,7 @@ def _get_node(name=None, instance_id=None, location=None):

params = {'Action': 'DescribeInstances'}

if str(name).startswith('i-') and len(name) == 10:
if str(name).startswith('i-') and (len(name) == 10 or len(name) == 19):
instance_id = name

if instance_id:
Expand Down

0 comments on commit a95fbff

Please sign in to comment.