@@ -289,8 +289,6 @@ def get_option(self, section, option, ignore_default=False): # pylint: disable=
289289 nr_write_queues = property (functools .partial (get_option , section = 'Global' , option = 'nr-write-queues' ))
290290 reconnect_delay = property (functools .partial (get_option , section = 'Global' , option = 'reconnect-delay' ))
291291
292- zeroconf_enabled = property (functools .partial (get_option , section = 'Service Discovery' , option = 'zeroconf' ))
293-
294292 zeroconf_persistence_sec = property (
295293 functools .partial (
296294 get_option , section = 'Discovery controller connection management' , option = 'zeroconf-connections-persistence'
@@ -307,6 +305,11 @@ def get_option(self, section, option, ignore_default=False): # pylint: disable=
307305 functools .partial (get_option , section = 'I/O controller connection management' , option = 'connect-attempts-on-ncc' )
308306 )
309307
308+ @property # pylint chokes on this when defined as zeroconf_enabled=property(...). Works fine using a decorator...
309+ def zeroconf_enabled (self ):
310+ '''Return whether zeroconf is enabled'''
311+ return self .get_option (section = 'Service Discovery' , option = 'zeroconf' )
312+
310313 @property
311314 def stypes (self ):
312315 '''@brief Get the DNS-SD/mDNS service types.'''
@@ -707,7 +710,7 @@ def dhchap_ctrlkey_supp(self):
707710
708711
709712# ******************************************************************************
710- class NbftConf (metaclass = singleton .Singleton ):
713+ class NbftConf (metaclass = singleton .Singleton ): # pylint: disable=too-few-public-methods
711714 '''Read and cache configuration file.'''
712715
713716 def __init__ (self , root_dir = defs .NBFT_SYSFS_PATH ):
0 commit comments