def lookup_configdrive_path(self, instance_name):
    configdrive_path = None
    for format_ext in constants.DISK_FORMAT_MAP:
        test_path = self.get_configdrive_path(instance_name, format_ext)
        if self.exists(test_path):
            configdrive_path = test_path
            break
    return configdrive_path
def lookup_configdrive_path(self, instance_name):
    configdrive_path = None
    for format_ext in constants.DISK_FORMAT_MAP:
        test_path = self.get_configdrive_path(instance_name, format_ext)
        if self.exists(test_path):
            configdrive_path = test_path
            break
    return configdrive_path