-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V1.0.0 rc release #9
Conversation
…failed builds depending on what the user selects
…images instead of being a default image
card.innerHTML = ` | ||
<div class="card-body d-flex align-items-center p-3"> | ||
<img src="/static/images/64x64/${vm.imageiconname}" alt="${vm.imagetype}" class="vm-image-icon me-3"> | ||
<div class="flex-grow-1"> | ||
<h5 class="card-title mb-1">${vm.hostname}</h5> | ||
<p class="card-text mb-0"><small>${vm.ipaddress} | ${vm.cpu} CPU | ${vm.ram} MB RAM</small></p> | ||
</div> | ||
</div> | ||
`; |
Check warning
Code scanning / CodeQL
DOM text reinterpreted as HTML Medium
DOM text
DOM text
DOM text
DOM text
DOM text
card.innerHTML = ` | ||
<div class="card-body d-flex align-items-center p-3"> | ||
<img src="/static/images/64x64/${vm.imageiconname}" alt="${vm.imagetype}" class="vm-image-icon me-3"> | ||
<div class="flex-grow-1"> | ||
<h5 class="card-title mb-1">${vm.hostname}</h5> | ||
<p class="card-text mb-0"><small>${vm.ipaddress} | ${vm.cpu} CPU | ${vm.ram} MB RAM</small></p> | ||
</div> | ||
</div> | ||
`; |
Check warning
Code scanning / CodeQL
DOM text reinterpreted as HTML Medium
DOM text
DOM text
DOM text
DOM text
DOM text
return jsonify({'success': True, 'message': 'VM restart initiated successfully.'}) | ||
except Exception as e: | ||
log_json('ERROR', f'Failed to restart VM ID: {vm_id}', error=str(e)) | ||
return jsonify({'success': False, 'message': f'Failed to restart VM: {str(e)}'}), 500 |
Check warning
Code scanning / CodeQL
Information exposure through an exception Medium
Stack trace information
except Exception as e: | ||
db.session.rollback() | ||
log_json('ERROR', 'VMware configuration update failed', error=str(e), traceback=traceback.format_exc()) | ||
return jsonify({'success': False, 'message': f'VMware configuration update failed: {str(e)}'}), 500 |
Check warning
Code scanning / CodeQL
Information exposure through an exception Medium
Stack trace information
file.write(content) | ||
return jsonify({'success': True, 'message': 'Playbook saved successfully'}) | ||
except Exception as e: | ||
return jsonify({'success': False, 'message': str(e)}), 500 |
Check warning
Code scanning / CodeQL
Information exposure through an exception Medium
Stack trace information
except Exception as e: | ||
db.session.rollback() | ||
log_json('ERROR', 'Template passwords update failed', error=str(e)) | ||
return jsonify({'success': False, 'message': f'Password update failed: {str(e)}'}), 500 |
Check warning
Code scanning / CodeQL
Information exposure through an exception Medium
Stack trace information
except ssl.SSLError as e: | ||
log_json('ERROR', 'VMware connection test failed: SSL error', | ||
vcenter_server=vcenter_server, username=vcenter_username, error=str(e)) | ||
return jsonify({'success': False, 'message': f'SSL Error: {str(e)}. Consider using a valid SSL certificate or updating your SSL configuration.'}), 500 |
Check warning
Code scanning / CodeQL
Information exposure through an exception Medium
Stack trace information
except Exception as e: | ||
log_json('ERROR', 'VMware connection test failed', | ||
vcenter_server=vcenter_server, username=vcenter_username, error=str(e)) | ||
return jsonify({'success': False, 'message': f'Connection failed: {str(e)}'}), 500 |
Check warning
Code scanning / CodeQL
Information exposure through an exception Medium
Stack trace information
try: | ||
output.append(f"Starting Linux update process for VM {vm_record.hostname}...") | ||
ssh = paramiko.SSHClient() | ||
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) |
Check failure
Code scanning / CodeQL
Accepting unknown SSH host keys when using Paramiko High
ssh = None | ||
try: | ||
ssh = paramiko.SSHClient() | ||
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) |
Check failure
Code scanning / CodeQL
Accepting unknown SSH host keys when using Paramiko High
log_json('INFO', f"Started expand disk on {vm_record.hostname}", vm_id=vm_record.id) | ||
|
||
ssh = paramiko.SSHClient() | ||
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) |
Check failure
Code scanning / CodeQL
Accepting unknown SSH host keys when using Paramiko High
Added
Changed
Fixed
Removed