Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package yast2-network for openSUSE:Factory 
checked in at 2021-07-22 22:42:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-network (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-network.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-network"

Thu Jul 22 22:42:48 2021 rev:459 rq:907340 version:4.4.21

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-network/yast2-network.changes      
2021-07-04 22:10:39.397269089 +0200
+++ /work/SRC/openSUSE:Factory/.yast2-network.new.1899/yast2-network.changes    
2021-07-22 22:43:13.571210303 +0200
@@ -1,0 +2,7 @@
+Tue Jul 20 08:47:30 UTC 2021 - Knut Anderssen <kanders...@suse.com>
+
+- Do not crash when the aliases defined in the AutoYaST profile
+  are not defined as a map (bsc#1188344)
+- 4.4.21
+
+-------------------------------------------------------------------

Old:
----
  yast2-network-4.4.20.tar.bz2

New:
----
  yast2-network-4.4.21.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ yast2-network.spec ++++++
--- /var/tmp/diff_new_pack.SGNUAJ/_old  2021-07-22 22:43:14.075209646 +0200
+++ /var/tmp/diff_new_pack.SGNUAJ/_new  2021-07-22 22:43:14.079209641 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-network
-Version:        4.4.20
+Version:        4.4.21
 Release:        0
 Summary:        YaST2 - Network Configuration
 License:        GPL-2.0-only

++++++ yast2-network-4.4.20.tar.bz2 -> yast2-network-4.4.21.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-network-4.4.20/package/yast2-network.changes 
new/yast2-network-4.4.21/package/yast2-network.changes
--- old/yast2-network-4.4.20/package/yast2-network.changes      2021-07-02 
08:50:30.000000000 +0200
+++ new/yast2-network-4.4.21/package/yast2-network.changes      2021-07-20 
17:55:51.000000000 +0200
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Tue Jul 20 08:47:30 UTC 2021 - Knut Anderssen <kanders...@suse.com>
+
+- Do not crash when the aliases defined in the AutoYaST profile
+  are not defined as a map (bsc#1188344)
+- 4.4.21
+
+-------------------------------------------------------------------
 Thu Jul  1 08:47:20 UTC 2021 - Michal Filka <mfi...@suse.com>
 
 - bnc#1185936
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-network-4.4.20/package/yast2-network.spec 
new/yast2-network-4.4.21/package/yast2-network.spec
--- old/yast2-network-4.4.20/package/yast2-network.spec 2021-07-02 
08:50:30.000000000 +0200
+++ new/yast2-network-4.4.21/package/yast2-network.spec 2021-07-20 
17:55:51.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-network
-Version:        4.4.20
+Version:        4.4.21
 Release:        0
 Summary:        YaST2 - Network Configuration
 License:        GPL-2.0-only
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-network-4.4.20/src/lib/y2network/autoinst_profile/interface_section.rb
 
new/yast2-network-4.4.21/src/lib/y2network/autoinst_profile/interface_section.rb
--- 
old/yast2-network-4.4.20/src/lib/y2network/autoinst_profile/interface_section.rb
    2021-07-02 08:50:30.000000000 +0200
+++ 
new/yast2-network-4.4.21/src/lib/y2network/autoinst_profile/interface_section.rb
    2021-07-20 17:55:51.000000000 +0200
@@ -281,7 +281,7 @@
         hash = rename_key(hash, "bridge_forwarddelay", "bridge_forward_delay")
         super(hash)
 
-        self.aliases = hash["aliases"] if hash["aliases"]
+        self.aliases = hash["aliases"].is_a?(Hash) ? hash["aliases"] : {}
       end
 
       # Method used by {.new_from_network} to populate the attributes when 
cloning a network
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-network-4.4.20/test/y2network/autoinst_profile/interface_section_test.rb
 
new/yast2-network-4.4.21/test/y2network/autoinst_profile/interface_section_test.rb
--- 
old/yast2-network-4.4.20/test/y2network/autoinst_profile/interface_section_test.rb
  2021-07-02 08:50:30.000000000 +0200
+++ 
new/yast2-network-4.4.21/test/y2network/autoinst_profile/interface_section_test.rb
  2021-07-20 17:55:51.000000000 +0200
@@ -120,6 +120,20 @@
         expect(section.bridge_forward_delay).to eq("5")
       end
     end
+
+    context "when the aliases are declared as an string" do
+      let(:hash) do
+        {
+          "device"  => "eth0",
+          "aliases" => ""
+        }
+      end
+
+      it "does not break and initializes the aliases as an empty hash" do
+        section = described_class.new_from_hashes(hash)
+        expect(section.aliases).to eql({})
+      end
+    end
   end
 
   describe "#to_hashes" do

Reply via email to