summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins/Packages/Source.py
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-11-01 00:06:17 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2015-05-10 16:25:26 +0200
commit610e4b140790dc2334aabd90a5b6fc5a636fd1be (patch)
treebbd1a164c13c5a0685fbf0a7a666c2c2b0de37e0 /src/lib/Bcfg2/Server/Plugins/Packages/Source.py
parent5b39d1c5735452fd1116f0218531a60fe2746956 (diff)
downloadbcfg2-610e4b140790dc2334aabd90a5b6fc5a636fd1be.tar.gz
bcfg2-610e4b140790dc2334aabd90a5b6fc5a636fd1be.tar.bz2
bcfg2-610e4b140790dc2334aabd90a5b6fc5a636fd1be.zip
Packages: add priority to sources and sort according to it
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugins/Packages/Source.py')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Packages/Source.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Packages/Source.py b/src/lib/Bcfg2/Server/Plugins/Packages/Source.py
index c9f6ea14a..2c2783394 100644
--- a/src/lib/Bcfg2/Server/Plugins/Packages/Source.py
+++ b/src/lib/Bcfg2/Server/Plugins/Packages/Source.py
@@ -202,6 +202,9 @@ class Source(Debuggable): # pylint: disable=R0902
#: The "name" attribute from :attr:`xsource`
self.name = xsource.get('name', None)
+ #: The "priority" attribute from :attr:`xsource`
+ self.priority = xsource.get('priority', 500)
+
#: A list of predicates that are used to determine if this
#: source applies to a given
#: :class:`Bcfg2.Server.Plugins.Metadata.ClientMetadata`