Skip to content

Commit 91e63ec

Browse files
chore: clean whitespaces
1 parent 3ce8ffb commit 91e63ec

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

plugins/provisioners/ansible/provisioner/base.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,9 @@ def set_and_check_compatibility_mode
6868
begin
6969
set_gathered_ansible_package_version("ansible-core", gather_ansible_version("ansible-core"))
7070
rescue StandardError => e
71-
@logger.error("Error while gathering the ansible-core version: #{e.to_s}")
71+
@logger.error("Error while gathering the ansible-core version: #{e}")
7272
end
7373

74-
7574
if @gathered_version_major
7675
if config.compatibility_mode == Ansible::COMPATIBILITY_MODE_AUTO
7776
detect_compatibility_mode

test/unit/plugins/provisioners/ansible/provisioner_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def self.it_should_check_ansible_version
8686
end
8787

8888
def self.it_should_check_ansible_core_version
89-
it "execute 'Python ansible-core version check before executing 'ansible-playbook'" do
89+
it "executes 'Python ansible-core version check before executing 'ansible-playbook'" do
9090
expect(Vagrant::Util::Subprocess).to receive(:execute)
9191
.once.with('python3', '-c', "import importlib.metadata; print('ansible-core ' + importlib.metadata.version('ansible-core'))", { notify: %i[
9292
stdout stderr
@@ -1284,7 +1284,7 @@ def ensure_that_config_is_valid
12841284
allow(subject).to receive(:gather_ansible_version).with("ansible-core").and_return("ansible #{config.version}\n...\n")
12851285
end
12861286

1287-
it 'returns the default inventory command' do
1287+
it 'returns the default inventory command' do
12881288
expect(Vagrant::Util::Subprocess).to receive(:execute).with('ansible-playbook', any_args) { |*args|
12891289
expect(args).to include("--inventory-file=#{generated_inventory_dir}")
12901290
}.and_return(default_execute_result)

0 commit comments

Comments
 (0)