<commit_before>module VagrantPlugins
  module LibcloudHelper
    module Action
      class AllocateSataPorts

        def initialize(app, env)
          @app = app
          @machine = env[:machine]
        end

        def call(env)
          return @app.call(env) if @machine.state.id != :poweroff && [:up].include?(env[:machine_action])

          env[:ui].info "********* Allocating SATA ports"
          env[:machine].provider.driver.allocate_sata_ports

          @app.call(env)
        end
      end
    end
  end
end<commit_msg>Only allocate SATA ports if requested<commit_after>module VagrantPlugins
  module LibcloudHelper
    module Action
      class AllocateSataPorts

        def initialize(app, env)
          @app = app
          @machine = env[:machine]
        end

        def call(env)
          return @app.call(env) if @machine.state.id != :poweroff && [:up].include?(env[:machine_action])

          if env[:machine].config.libcloud_helper.allocate_sata_ports
            env[:ui].info "********* Allocating SATA ports"
            env[:machine].provider.driver.allocate_sata_ports
          end

          @app.call(env)
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.1097972972972973, 'fraction_numerical': 0.0, 'mean_word_length': 2.185483870967742, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1886684', 'n_tokens_mistral': 355, 'n_tokens_neox': 345, 'n_words': 77}