crowbar/crowbar-ceph

View on GitHub
chef/cookbooks/ceph/recipes/osd.rb

Summary

Maintainability
A
3 hrs
Test Coverage

Avoid deeply nested control flow statements.
Open

          if ssd_partitions > partitions_per_ssd && ssd_devices[ssd_index+1]
            ssd_partitions      = 0
            ssd_index           = ssd_index + 1
          end
Severity: Major
Found in chef/cookbooks/ceph/recipes/osd.rb - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

        case service_type
        when "upstart"
          service_name "ceph-osd-all-starter"
          provider Chef::Provider::Service::Upstart
        else
Severity: Major
Found in chef/cookbooks/ceph/recipes/osd.rb - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

          extra_options = "--mark-init systemd" if service_type == "systemd"
Severity: Major
Found in chef/cookbooks/ceph/recipes/osd.rb - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

          create_cmd            = create_cmd + " #{journal_device}" if journal_device
Severity: Major
Found in chef/cookbooks/ceph/recipes/osd.rb - About 45 mins to fix

There are no issues that match your filters.

Category
Status