def _details(self):

        reservations = self.connection.get_all_instances(
            instance_ids=None, filters=None, dry_run=False, max_results=None)

        # find the first matching instance that is not terminating/terminated
        for reservation in reservations:
            for instance in reservation.instances:
                if "Name" in instance.tags and instance.tags["Name"] == self.name:
                    if instance.state not in [ 'terminating', 'terminated', 'pending', 'shutting-down' ]:
                        return instance
        return None

    # --------------------------------------------------------------------------
Return the cloud provider's info about the described instance
dataset/ETHPy150Open mpdehaan/strider/lib/strider/virt/ec2.py/EC2._details