Skip to content

Commit

Permalink
Instserver.rb - remove trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Oct 14, 2014
1 parent 680abcd commit 766835f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/modules/Instserver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def SetupFTP(dir, ftproot, ftpalias)
end
# add the configuration to the list
netdconf = Builtins.add(netdconf, conf)
end
end


if servicefound == false
Expand Down Expand Up @@ -631,7 +631,7 @@ def EscapeSLPData(a)
new_value = String.Replace(new_value, "#", "\\23")
new_value = String.Replace(new_value, ";", "\\3b")
Ops.set(ret, new_key, new_value)
end
end


Builtins.y2milestone("Escaped SLP attributes: %1 -> %2", a, ret)
Expand Down Expand Up @@ -694,7 +694,7 @@ def UnEscapeSLPData(a)
new_value = subreplace(new_value, "3b", ";")
new_value = subreplace(new_value, "5c", "\\")
Ops.set(ret, new_key, new_value)
end
end


Builtins.y2milestone("Unescaped SLP attributes: %1 -> %2", a, ret)
Expand Down Expand Up @@ -771,7 +771,7 @@ def get_machines(basearch_value)
:from => "list",
:to => "list <string>"
)
end
end


Builtins.y2milestone("Final BASEARCH mapping: %1", ret)
Expand Down Expand Up @@ -877,7 +877,7 @@ def WriteSLPReg(cm)
Builtins.sformat("YaST-%1.reg", orig)
)
end
end
end

machines = []
Builtins.foreach(cm) do |k, v|
Expand Down Expand Up @@ -936,7 +936,7 @@ def WriteSLPReg(cm)
)
Ops.set(old_attr, parsed_name, parsed_value)
end
end
end


# unescape the read value
Expand All @@ -953,7 +953,7 @@ def WriteSLPReg(cm)
Builtins.union(attr, old_attr),
:from => "map",
:to => "map <string, string>"
)
)

# TODO: checking?
# // don't check the overwritten config file
Expand Down Expand Up @@ -1032,7 +1032,7 @@ def NFSExported(dir)

Builtins.foreach(exports) do |e|
ret = true if Ops.get_string(e, "mountpoint", "") == dir
end
end


Builtins.y2milestone("Directory %1 is exported: %2", dir, ret)
Expand Down Expand Up @@ -1084,7 +1084,7 @@ def FTPValid(config)
# the default is true: missing tag means the service is enabled (!)
ftpdenabled = Ops.get_boolean(conf, "enabled", true)
end
end
end


Builtins.y2milestone(
Expand Down Expand Up @@ -1316,7 +1316,7 @@ def Write
Ops.get_string(conf, "name", "")
)
end
end
end


# Remove the SLP files of removed or SLP disabled repositories
Expand Down Expand Up @@ -1358,7 +1358,7 @@ def Write
Popup.Error(_("Error while moving repository content."))
next
end
end
end



Expand Down

0 comments on commit 766835f

Please sign in to comment.