ref: refs/heads/network
commit 931cbec1e25b35f14beb4588d622faa9a6d88497
Author: Michal Zugec
Date: Thu Sep 10 14:29:27 2009 +0200
save data (for Write function)
---
.../app/controllers/network/dns_controller.rb | 2 ++
.../app/controllers/network/hostname_controller.rb | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/plugins/network/app/controllers/network/dns_controller.rb b/plugins/network/app/controllers/network/dns_controller.rb
index 5740878..01eb3e8 100644
--- a/plugins/network/app/controllers/network/dns_controller.rb
+++ b/plugins/network/app/controllers/network/dns_controller.rb
@@ -15,6 +15,8 @@ class Network::DnsController < ApplicationController
end
@dns = DNS.new(root)
+ @dns.domains = root["searches"]
+ @dns.servers = root["nameservers"]
@dns.save
render :show
end
diff --git a/plugins/network/app/controllers/network/hostname_controller.rb b/plugins/network/app/controllers/network/hostname_controller.rb
index d85c006..a51ff50 100644
--- a/plugins/network/app/controllers/network/hostname_controller.rb
+++ b/plugins/network/app/controllers/network/hostname_controller.rb
@@ -16,6 +16,8 @@ class Network::HostnameController < ApplicationController
end
@hostname = Hostname.new(root)
+ @hostname.name = root[:name]
+ @hostname.domain = root[:domain]
@hostname.save
render :show
end
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org