make updates
This commit is contained in:
@@ -399,7 +399,7 @@ document.getElementById('btn-create-yaml').addEventListener('click', async () =>
|
||||
},
|
||||
inventory_host: 'GBP08-AIO-1',
|
||||
esxi_host: 'ESXI-1',
|
||||
version: '25.1',
|
||||
version: '25.x',
|
||||
ova_file: '/home/mjensen/OVA/HPE_ANW_P5G_Core-1.25.1.1-qemux86-64.ova',
|
||||
|
||||
// Make sure backend knows which host to use; it will read the fresh snapshot
|
||||
@@ -416,9 +416,14 @@ document.getElementById('btn-create-yaml').addEventListener('click', async () =>
|
||||
const j = await res.json();
|
||||
if (!res.ok || !j.ok) throw new Error(j.error || `HTTP ${res.status}`);
|
||||
|
||||
console.log('YAML creation response:', j);
|
||||
document.getElementById('yaml-badge').textContent = 'Created';
|
||||
document.getElementById('yaml-badge').className = 'badge bg-success';
|
||||
alert(`YAML files created in: ${j.staging}`);
|
||||
if (j.staging) {
|
||||
alert(`YAML files created in: ${j.staging}`);
|
||||
} else {
|
||||
alert('YAML files created, but staging path is missing in response.');
|
||||
}
|
||||
} catch (err) {
|
||||
console.error('Error creating YAML:', err);
|
||||
document.getElementById('yaml-badge').textContent = 'Failed';
|
||||
|
||||
Reference in New Issue
Block a user