mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-13 09:50:19 +00:00
Checked for disk pool cookies before making ajax call in zVM provision page.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8484 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
@ -2242,20 +2242,21 @@ function createZProvisionNew(inst) {
|
||||
hcpInput.blur(function() {
|
||||
if ($(this).val()) {
|
||||
var args = $(this).val().split('.');
|
||||
|
||||
// Get disk pools
|
||||
$.ajax( {
|
||||
url : 'lib/cmd.php',
|
||||
dataType : 'json',
|
||||
data : {
|
||||
cmd : 'lsvm',
|
||||
tgt : args[0],
|
||||
args : '--diskpoolnames',
|
||||
msg : args[0]
|
||||
},
|
||||
|
||||
success : setDiskPoolCookies
|
||||
});
|
||||
if (!$.cookie(args[0] + 'diskpools')) {
|
||||
// Get disk pools
|
||||
$.ajax( {
|
||||
url : 'lib/cmd.php',
|
||||
dataType : 'json',
|
||||
data : {
|
||||
cmd : 'lsvm',
|
||||
tgt : args[0],
|
||||
args : '--diskpoolnames',
|
||||
msg : args[0]
|
||||
},
|
||||
|
||||
success : setDiskPoolCookies
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
hcpDiv.append(hcpLabel);
|
||||
|
Reference in New Issue
Block a user