summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2015-01-23 17:57:16 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2015-01-23 17:58:48 +0100
commiteafcb0ad931c5ae2d34e564c811a8c4cc0ee6278 (patch)
tree6300b3efe2bb65538586f6b69a82065a47b0a80f /src
parentd2a52e47c867f8f5864781f200bed4d0adf373b3 (diff)
downloadbcfg2-eafcb0ad931c5ae2d34e564c811a8c4cc0ee6278.tar.gz
bcfg2-eafcb0ad931c5ae2d34e564c811a8c4cc0ee6278.tar.bz2
bcfg2-eafcb0ad931c5ae2d34e564c811a8c4cc0ee6278.zip
Plugins/Packages/Source: Remove unused arguments of _init_attributes
Diffstat (limited to 'src')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Packages/Source.py9
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Packages/Yum.py4
2 files changed, 4 insertions, 9 deletions
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")