From eafcb0ad931c5ae2d34e564c811a8c4cc0ee6278 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 23 Jan 2015 17:57:16 +0100 Subject: Plugins/Packages/Source: Remove unused arguments of _init_attributes --- src/lib/Bcfg2/Server/Plugins/Packages/Source.py | 9 ++------- src/lib/Bcfg2/Server/Plugins/Packages/Yum.py | 4 ++-- 2 files changed, 4 insertions(+), 9 deletions(-) (limited to 'src/lib/Bcfg2') diff --git a/src/lib/Bcfg2/Server/Plugins/Packages/Source.py b/src/lib/Bcfg2/Server/Plugins/Packages/Source.py index cf26c982f..6c5b61742 100644 --- a/src/lib/Bcfg2/Server/Plugins/Packages/Source.py +++ b/src/lib/Bcfg2/Server/Plugins/Packages/Source.py @@ -212,7 +212,7 @@ class Source(Bcfg2.Server.Plugin.Debuggable): # pylint: disable=R0902 #: compat with older code that relies on this. self.groups = [] - self._init_attributes(basepath, xsource, setup) + self._init_attributes(xsource) #: A set of all package names in this source. This will not #: necessarily be populated, particularly by backends that @@ -271,7 +271,7 @@ class Source(Bcfg2.Server.Plugin.Debuggable): # pylint: disable=R0902 setting['name'] = self.get_repo_name(setting) self.url_map.extend(usettings) - def _init_attributes(self, basepath, xsource, setup): + def _init_attributes(self, xsource): """ This functions evaluates the Source tag and parses all attributes. Override this function in a sub class to @@ -280,13 +280,8 @@ class Source(Bcfg2.Server.Plugin.Debuggable): # pylint: disable=R0902 need this specific fields. This functions is called before any other function. - :param basepath: The base filesystem path under which cache - data for this source should be stored - :type basepath: string :param xsource: The XML tag that describes this source :type source: lxml.etree._Element - :param setup: A Bcfg2 options dict - :type setup: dict """ self.components = [item.text for item in xsource.findall('Component')] diff --git a/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py b/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py index 6669d3066..20b0e103d 100644 --- a/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py +++ b/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py @@ -1040,8 +1040,8 @@ class YumSource(Source): Source.__init__(self, basepath, xsource, setup) __init__.__doc__ = Source.__init__.__doc__ - def _init_attributes(self, basepath, xsource, setup): - Source._init_attributes(self, basepath, xsource, setup) + def _init_attributes(self, xsource): + Source._init_attributes(self, xsource) if HAS_PULP and xsource.get("pulp_id"): self.pulp_id = xsource.get("pulp_id") -- cgit v1.2.3-1-g7c22