cloudyr / aws.ec2

AWS EC2 Client Package
45 stars 28 forks source link

`describe_instances` dies if `instances` argument has length 0. #10

Closed peterfoley closed 8 years ago

peterfoley commented 8 years ago

Easy to reproduce:aws.ec2::describe_instances(c()) returns:

Error in names(instance) <- paste0("InstanceId.", 1:length(instance)) : 
  'names' attribute [2] must be the same length as the vector [0]

It is sort of an edge case, but may be common enough to handle instead of throwing an error.