human
Solve the following python programming problem given the following code:
def _get_configs(self, service, cluster = None, instance = None) : 
    def get_hadoop_dirs(mount_points, suffix) : 
        return ','.join ([(x + suffix) for x in mount_points]) 
all_confs = { 
        
} 
    if cluster : 
        zk_count = self.validator._get_inst_count (cluster, 'ZOOKEEPER_SERVER') 
        core_site_safety_valve = '' 
        if self.pu.c_helper.is_swift_enabled (cluster) : 
            configs = swift_helper.get_swift_configs () 
            confs = { c ['name'] : c ['value'] for c in configs } 
            core_site_safety_valve = xmlutils.create_elements_xml (confs) 
all_confs = { 
            'HDFS' : { 
                'zookeeper_service' : (self.ZOOKEEPER_SERVICE_NAME if zk_count else ''), 
                'core_site_safety_valve' : core_site_safety_valve, 
}, 
            'HIVE' : { 
                'mapreduce_yarn_service' : self.YARN_SERVICE_NAME, 
                'zookeeper_service' : (self.ZOOKEEPER_SERVICE_NAME if zk_count else ''), 
}, 
            'OOZIE' : { 
                'mapreduce_yarn_service' : self.YARN_SERVICE_NAME, 
                'zookeeper_service' : (cluster.ZOOKEEPER_SERVICE_NAME if zk_count else ''), 
}, 
            'YARN' : { 
                'hdfs_service' : self.HDFS_SERVICE_NAME, 
                'zookeeper_service' : (self.ZOOKEEPER_SERVICE_NAME if zk_count else ''), 
}, 
            'HUE' : { 
                'hive_service' : self.HIVE_SERVICE_NAME, 
                'oozie_service' : self.OOZIE_SERVICE_NAME, 
                'zookeeper_service' : (self.ZOOKEEPER_SERVICE_NAME if zk_count else ''), 
}, 
            'SPARK_ON_YARN' : { 
                'yarn_service' : self.YARN_SERVICE_NAME, 
}, 
            'HBASE' : { 
                'hdfs_service' : self.HDFS_SERVICE_NAME, 
                'zookeeper_service' : self.ZOOKEEPER_SERVICE_NAME, 
}, 
} 
        hive_confs = { 
            'HIVE' : { 
                'hive_metastore_database_type' : 'postgresql', 
                'hive_metastore_database_host' : self.pu.get_manager...

    
    

    Fix the buggy line: 'zookeeper_service' : (cluster.ZOOKEEPER_SERVICE_NAME if zk_count else '') ,
assistant
#Here is Python code to fix the buggy line: 'zookeeper_service' : (cluster.

'zookeeper_service' : (self.ZOOKEEPER_SERVICE_NAME if zk_count else '') ,