Skip to content

Commit

Permalink
Merge 43fe194 into ac5572f
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed Sep 28, 2020
2 parents ac5572f + 43fe194 commit f07d0ed
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
7 changes: 7 additions & 0 deletions package/yast2-network.changes
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Sep 28 13:44:08 UTC 2020 - Knut Anderssen <kanderssen@suse.com>

- Write the virtualization network configuration properly during an
autoinstallation (bsc#1177025)
- 4.2.80

-------------------------------------------------------------------
Thu Sep 24 15:20:15 UTC 2020 - Knut Anderssen <kanderssen@suse.com>

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-network.spec
Expand Up @@ -17,7 +17,7 @@


Name: yast2-network
Version: 4.2.79
Version: 4.2.80
Release: 0
Summary: YaST2 - Network Configuration
License: GPL-2.0-only
Expand Down
2 changes: 1 addition & 1 deletion src/lib/network/network_autoconfiguration.rb
Expand Up @@ -109,7 +109,7 @@ def configure_virtuals
# wait for rebooting into just installed target
return if Lan.yast_config == Lan.system_config

Lan.yast_config.write
Lan.write_config
end

# Propose DNS and Hostname setup
Expand Down
6 changes: 3 additions & 3 deletions test/network_autoconfiguration_test.rb
Expand Up @@ -203,7 +203,7 @@ def probe_netcard_factory(num)
allow(Y2Network::Config).to receive(:find).with(:yast).and_return(yast_config)
allow(Y2Network::Config).to receive(:find).with(:system).and_return(system_config)
allow(instance).to receive(:virtual_proposal_required?).and_return(proposal)
allow(yast_config).to receive(:write)
allow(Yast::Lan).to receive(:write_config)
allow_any_instance_of(Y2Network::VirtualizationConfig)
.to receive(:connected_and_bridgeable?).and_return(true)
allow(Yast::PackageSystem).to receive(:Installed).and_return(true)
Expand Down Expand Up @@ -231,7 +231,7 @@ def probe_netcard_factory(num)
end

it "writes the configuration of the interfaces" do
expect(Yast::Lan.yast_config).to receive(:write)
expect(Yast::Lan).to receive(:write_config)
instance.configure_virtuals
end

Expand All @@ -241,7 +241,7 @@ def probe_netcard_factory(num)
end

it "writes the routing config" do
expect(yast_config).to receive(:write)
expect(Yast::Lan).to receive(:write_config)
instance.configure_virtuals
end
end
Expand Down

0 comments on commit f07d0ed

Please sign in to comment.