-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:
parent
a6d0f829eb
commit
d30317d4ed
@ -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.'"/>';
|
||||
|
Loading…
Reference in New Issue
Block a user