Bug 769881 - tree_repos -> os_repos broke your own snippets.
Summary: tree_repos -> os_repos broke your own snippets.
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Fedora
Classification: Fedora
Component: cobbler
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Bill Peck
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-22 15:54 UTC by Arlinton Bourne
Modified: 2012-09-13 14:56 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-12-22 16:42:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Arlinton Bourne 2011-12-22 15:54:03 UTC
So you guys decided to change tree_repos to os_repos and change the syntax. In doing that you've broken a few of your own scripts as well.

Here are two snippets that still reference tree_repos:
./anaconda_repos:#if $getVar('tree_repos','') != ''
./anaconda_repos:#for $repo in $getVar('tree_repos','').split(':')
./rhts_post:#set $tree_repos = $getVar('tree_repos','')
./rhts_post:#if $tree_repos != ''
./rhts_post:#if $tree_repos.find("http://") != -1
./rhts_post:#for $repo in $getVar('tree_repos','').split($split)

Comment 1 Bill Peck 2011-12-22 16:06:08 UTC
Hi Arlinton,

Sorry, I didn't know you were using those.  We still have tree_repos because some distros in cobbler may still have that data.  going forward we are only populating os_repos, debug_repos, etc..

Comment 2 Arlinton Bourne 2011-12-22 16:26:13 UTC
The $tree_repos variable is empty. Also these scripts are shipped with cobbler and thus is maintained by you guys. You probably might want to fix it.

Comment 3 Bill Peck 2011-12-22 16:42:27 UTC
Yes the tree_repos is empty for newly processed distros but not for old distros.

Its left there in case the customer has old distros with tree_repos defined.  Thats all.


Note You need to log in before you can comment on or make changes to this bug.