cerner/cerner_splunk

View on GitHub
recipes/_configure_indexes.rb

Summary

Maintainability
A
2 hrs
Test Coverage

Consider simplifying this complex logical expression.
Open

  if %i[index default].include?(stanza_type) && daily_mb && ((!s2_enabled_index && !hash.key?('maxTotalDataSizeMB')) || (s2_enabled_index && !hash.key?('maxGlobalDataSizeMB')))
    settings = CernerSplunk.my_cluster_data(node).fetch('settings', {})
    replication_factor = settings['replication_factor'] || 1
    indexer_count = settings['_cerner_splunk_indexer_count'] || 1
    # If the frozen time isn't specified, splunk defaults to 6 years
Severity: Critical
Found in recipes/_configure_indexes.rb - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status