dice-cyfronet/atmosphere

View on GitHub
app/services/atmosphere/appliance_vms_manager.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method instantiate_vm has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def instantiate_vm(tmpl, tenant, flavor, name)
      server_id = start_vm_on_cloud(tmpl, tenant, flavor, name)
      vm = VirtualMachine.find_or_initialize_by(
          id_at_site: server_id,
          tenant: tenant
Severity: Minor
Found in app/services/atmosphere/appliance_vms_manager.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status