Support 17-character IDs

This commit is contained in:
Joseph Hall 2016-01-22 11:28:01 -07:00
parent 05d05263ab
commit a95fbff4bc

View file

@ -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: