Skip to content

Commit

Permalink
Fix write parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed Oct 8, 2020
1 parent 2d97ce3 commit 5bb5bd2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/y2network/clients/dns.rb
Expand Up @@ -276,7 +276,7 @@ def read_config
end

def write_config
Yast::Lan.write_config(sections: [:dns, :hostname])
Yast::Lan.write_config(only: [:dns, :hostname])
end
end
end
Expand Down
3 changes: 2 additions & 1 deletion test/y2network/clients/dns_test.rb
Expand Up @@ -82,7 +82,8 @@
end

it "writes the changes" do
expect(subject).to receive(:write_config)
allow(subject).to receive(:write_config).and_call_original
expect(Yast::Lan).to receive(:write_config).with(only: [:dns, :hostname])
subject.main
end

Expand Down

0 comments on commit 5bb5bd2

Please sign in to comment.