ref: refs/heads/master
commit a1bff3449377c85610662c7a9ec8e8dec6432a29
Author: Michal Zugec
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@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org