theforeman/foreman_azure

View on GitHub

Showing 1 of 3 total issues

Function azure_image_selected has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function azure_image_selected() {
  var url = $('#host_compute_attributes_image_id').attr('data-url');
  var imageId = $('#host_compute_attributes_image_id').val();
  var azure_locations = $('#azure_locations');
  var locations_spinner = $('#azure_locations_spinner');
Severity: Minor
Found in app/assets/javascripts/foreman_azure/host_os_azure_selected.js - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language