summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins/Packages/Source.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-22 13:39:15 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-22 13:39:15 -0400
commit93c1f7b10b8abd2f00702c238cc30a9fdcb8dfdf (patch)
tree25edccea1517fbad3e578183c2becef60271cf51 /src/lib/Bcfg2/Server/Plugins/Packages/Source.py
parentd3ba60b706f60df8150d30092cf511883892c537 (diff)
downloadbcfg2-93c1f7b10b8abd2f00702c238cc30a9fdcb8dfdf.tar.gz
bcfg2-93c1f7b10b8abd2f00702c238cc30a9fdcb8dfdf.tar.bz2
bcfg2-93c1f7b10b8abd2f00702c238cc30a9fdcb8dfdf.zip
fixed determination of repo name from source component name
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugins/Packages/Source.py')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Packages/Source.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Packages/Source.py b/src/lib/Bcfg2/Server/Plugins/Packages/Source.py
index 130741fc3..df3706fb1 100644
--- a/src/lib/Bcfg2/Server/Plugins/Packages/Source.py
+++ b/src/lib/Bcfg2/Server/Plugins/Packages/Source.py
@@ -147,9 +147,8 @@ class Source(Bcfg2.Server.Plugin.Debuggable):
def get_repo_name(self, url_map):
# try to find a sensible name for a repo
- if 'components' in url_map and url_map['components']:
- # use the first component as the name
- rname = url_map['components'][0]
+ if 'component' in url_map and url_map['component']:
+ rname = url_map['component']
else:
name = None
for repo_re in (self.mrepo_re,