Fix list_nodes for the ec2 provider.