Mailinglist Archive: yast-commit (1809 mails)

< Previous Next >
[yast-commit] <rest-service> network : change xml to conform to specification
  • From: Michal Zugec <mzugec@xxxxxxx>
  • Date: Fri, 4 Sep 2009 09:34:13 +0200
  • Message-id: <E1MjTKR-0008ON-V0@xxxxxxxxxxxxxxxx>
ref: refs/heads/network
commit a1bff3449377c85610662c7a9ec8e8dec6432a29
Author: Michal Zugec <mzugec@xxxxxxx>
Date: Fri Sep 4 09:34:13 2009 +0200

change xml to conform to specification
---
plugins/network/app/models/dns.rb | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/plugins/network/app/models/dns.rb
b/plugins/network/app/models/dns.rb
index f153a75..703b9c0 100644
--- a/plugins/network/app/models/dns.rb
+++ b/plugins/network/app/models/dns.rb
@@ -43,14 +43,14 @@ class DNS
xml.instruct! unless options[:skip_instruct]

xml.dns do
- xml.domains({:type => "array"}) do
- domains.each do |@domains, val|
- xml.tag!(:domain, domains)
- end
+ xml.nameservers({:type => "array"}) do
+ servers.each do |s|
+ xml.nameserver s
+ end
end
- xml.servers({:type => "array"}) do
- servers.each do |@servers, val|
- xml.tag!(:nameserver, servers)
+ xml.searches({:type => "array"}) do
+ domains.each do |s|
+ xml.search s
end
end
end
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages