def _set_instance_ip(self):
instance = self._get_instance()<EOL>if instance.public_ips:<EOL><INDENT>self.instance_ip = instance.public_ips[<NUM_LIT:0>]<EOL><DEDENT>elif instance.private_ips:<EOL><INDENT>self.instance_ip = instance.private_ips[<NUM_LIT:0>]<EOL><DEDENT>else:<EOL><INDENT>raise GCECloudException(<EOL>'<STR_LIT>'<EOL>% self.running_instance_id<EOL>)<EOL><DEDENT>
Retrieve and set the instance ip address.