Mailinglist Archive: yast-commit (2114 mails)

< Previous Next >
[yast-commit] <rest-service> jr_ntp : save data (for Write function)
  • From: Michal Zugec <mzugec@xxxxxxx>
  • Date: Thu, 10 Sep 2009 14:29:27 +0200
  • Message-id: <E1MpkqL-0004yl-8m@xxxxxxxxxxxxxxxx>
ref: refs/heads/jr_ntp
commit 931cbec1e25b35f14beb4588d622faa9a6d88497
Author: Michal Zugec <mzugec@xxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages