-Have a connsistent UUID to go with url

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6795 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2010-07-19 17:43:15 +00:00
parent a6d0f829eb
commit d30317d4ed

View File

@ -108,8 +108,10 @@ sub build_pool_xml {
$host =~ s/.*:\/\///;
$host =~ s/(\/.*)//;
my $srcpath = $1;
my $uuid = xCAT::Utils::genUUID(url=>$url);
my $pooldesc = '<pool type="netfs">';
$pooldesc .= '<name>'.$url.'</name>';
$pooldesc .= '<uuid>'.$uuid.'</uuid>>';
$pooldesc .= '<source>';
$pooldesc .= '<host name="'.$host.'"/>';
$pooldesc .= '<dir path="'.$srcpath.'"/>';