Mailinglist Archive: yast-commit (2114 mails)

< Previous Next >
[yast-commit] <web-client> use-activeresource : save DNS settings
  • From: Michal Zugec <mzugec@xxxxxxx>
  • Date: Mon, 14 Sep 2009 17:33:46 +0200
  • Message-id: <E1MoJ2V-0003Lb-2R@xxxxxxxxxxxxxxxx>
ref: refs/heads/use-activeresource
commit 91c424fb29c55160d0cb268b7165cf44f289c3d8
Author: Michal Zugec <mzugec@xxxxxxx>
Date: Mon Sep 14 17:33:46 2009 +0200

save DNS settings
---
.../network/app/controllers/network_controller.rb | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/plugins/network/app/controllers/network_controller.rb
b/plugins/network/app/controllers/network_controller.rb
index 3c97aa3..46b30f1 100644
--- a/plugins/network/app/controllers/network_controller.rb
+++ b/plugins/network/app/controllers/network_controller.rb
@@ -52,7 +52,6 @@ class NetworkController < ApplicationController
@domain = hn.domain
@nameservers = dns.nameservers
@searchdomains = dns.searches
-
@default_route = rt.via

end
@@ -72,14 +71,16 @@ class NetworkController < ApplicationController

dns = load_proxy "org.opensuse.yast.modules.yapi.network.dns"
return false unless dns
- dns.nameservers = params["nameservers"]
- dns.searches = params["searches"]
+# FIXME: params bellow should be arrays
+ dns.nameservers = params["nameservers"]#.split
+ dns.searches = params["searchdomains"]#.split

hn = load_proxy "org.opensuse.yast.modules.yapi.network.hostname"
return false unless hn
hn.name = params["name"]
hn.domain = params["domain"]
-
+
+
begin
rt.save
dns.save
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages