crowbar/crowbar-core

View on GitHub
chef/cookbooks/updater/recipes/default.rb

Summary

Maintainability
A
1 hr
Test Coverage

Avoid deeply nested control flow statements.
Open

            if node[:updater][:do_reboot]
              Chef::Log.info("Will reboot node at the end of chef run.")
              node.run_state[:reboot] = true
              node[:updater][:need_reboot] = false
            else
Severity: Major
Found in chef/cookbooks/updater/recipes/default.rb - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

            if count >= 5
              message = "Ran \"#{zypper_command}\" more than five times, and it still requires more runs."
              Chef::Log.fatal(message)
              node.save # node is always dirty due to one_shot_run
              raise message
Severity: Major
Found in chef/cookbooks/updater/recipes/default.rb - About 45 mins to fix

There are no issues that match your filters.

Category
Status