Skip to content

Commit

Permalink
Merge pull request #532 from yast/read_import_fix
Browse files Browse the repository at this point in the history
Read import fix
  • Loading branch information
jreidinger committed Jul 11, 2017
2 parents 4a074b4 + e7cd951 commit 465fe0b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
7 changes: 7 additions & 0 deletions package/yast2-network.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Jul 10 15:03:09 UTC 2017 - jreidinger@suse.com

- Fix crash during write if Host.Read and Host.Import is called
together (bsc#1047929)
- 3.3.2

-------------------------------------------------------------------
Tue Jul 4 15:06:40 UTC 2017 - lslezak@suse.cz

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-network.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


Name: yast2-network
Version: 3.3.1
Version: 3.3.2
Release: 0
BuildArch: noarch

Expand Down
3 changes: 1 addition & 2 deletions src/lib/cfa/hosts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@ module CFA
# @see http://www.rubydoc.info/github/config-files-api/config_files_api/CFA/BaseModel
# @see http://www.rubydoc.info/github/config-files-api/config_files_api/CFA/AugeasParser
class Hosts < BaseModel
PARSER = AugeasParser.new("hosts.lns")
PATH = "/etc/hosts".freeze
include Yast::Logger

def initialize(file_handler: nil)
super(PARSER, PATH, file_handler: file_handler)
super(AugeasParser.new("hosts.lns"), PATH, file_handler: file_handler)
end

# The old format used by {Yast::HostClass}.
Expand Down

0 comments on commit 465fe0b

Please sign in to comment.