Stromweld/autopatch_ii

View on GitHub

Showing 2 of 83 total issues

Avoid deeply nested control flow statements.
Open

          if node['autopatch_ii']['private_lin_autopatch_disabled_programmatically'] == true
            if node['autopatch_ii']['disable'] == true
              # Re-enable it
              Chef::Log::debug("Re-enabling autopatch_ii for month #{DateTime.now.strftime('%^b')}")
              node.override['autopatch_ii']['disable'] = false
Severity: Major
Found in recipes/linux.rb - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

              if node['autopatch_ii']['disable'] == false
                node.override['autopatch_ii']['disable'] = true
                node.override['autopatch_ii']['private_lin_autopatch_disabled_programmatically'] = true
                Chef::Log::debug("Disabling autopatch_ii for month #{DateTime.now.strftime('%^b')}!!")
              end
    Severity: Major
    Found in recipes/linux.rb - About 45 mins to fix
      Severity
      Category
      Status
      Source
      Language