human
Solve the following python programming problem given the following code:
@ testtools.skipUnless (CONF.aws.run_ssh, 'SSH tests are disabled.') 
@ testtools.skipUnless (CONF.aws.run_long_tests, 'Slow test has skipped.') 
@ testtools.skipUnless (CONF.aws.image_id_ubuntu, 'ubuntu image id is not defined') 
def test_reboot_instance(self) : 
    key_name = data_utils.rand_name ('testkey') 
    pkey = self.create_key_pair (key_name) 
    sec_group_name = self.create_standard_security_group () 
    instance_id = self.run_instance (KeyName = key_name, ImageId = CONF.aws.image_id_ubuntu, SecurityGroups = [sec_group_name]) 
    ip_address = self.get_instance_ip (instance_id) 
    ssh_client = ssh.Client (data, CONF.aws.image_user_ubuntu, pkey = pkey) 
    last_lines = ssh_client.exec_command ('last -x').split ('
') 
    self.client.reboot_instances (InstanceIds = [instance_id]) 
    def _last_state() : 
        current = ssh_client.exec_command ('last -x').split ('
') 
        if (len (current) > len (last_lines)) : 
            return 
raise Exception () 
waiter = base.EC2Waiter (_last_state) 
    waiter.wait_no_exception () 
    data = ssh_client.exec_command ('last -x') 
    self.assertIn ('shutdown', data) 

    
    

    Fix the buggy line: ssh_client = ssh.Client (data, CONF.aws.image_user_ubuntu, pkey = pkey)
assistant
#Here is Python code to fix the buggy line: ssh_client = ssh.

ssh_client = ssh.Client (ip_address, CONF.aws.image_user_ubuntu, pkey = pkey)