diff --git a/xCAT-UI/js/custom/zvmUtils.js b/xCAT-UI/js/custom/zvmUtils.js index 9a1653591..f856b8f46 100644 --- a/xCAT-UI/js/custom/zvmUtils.js +++ b/xCAT-UI/js/custom/zvmUtils.js @@ -5839,7 +5839,7 @@ function configProfilePanel(panelId) { deleteLnk.click(function() { var profiles = getNodesChecked(tableId); if (profiles) { - openDeleteProfileDialog(profiles); + deleteProfileDialog(profiles); } }); @@ -6239,6 +6239,10 @@ function editProfileDialog(profile, pool, size, entry) { } }); + // A newline at the end of directory entry is needed + entry = entry.replace(/^\s+|\s+$/g, ''); + entry += '\n'; + // Write file to /var/tmp $.ajax({ url : 'lib/cmd.php',