ref: refs/heads/master commit a6a799cf6bb0c1f3c60a59cef2a5afa0892b1d1c Author: Josef Reidinger <jreidinger@suse.cz> Date: Mon Nov 23 16:02:59 2009 +0100 Fix testsuite: don't split param, because serialization also doesn't do it (really crapy behavior) --- .../network/app/controllers/network_controller.rb | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/network/app/controllers/network_controller.rb b/plugins/network/app/controllers/network_controller.rb index 0400038..d4ff189 100644 --- a/plugins/network/app/controllers/network_controller.rb +++ b/plugins/network/app/controllers/network_controller.rb @@ -83,11 +83,12 @@ class NetworkController < ApplicationController dns = load_proxy "org.opensuse.yast.modules.yapi.network.dns" return false unless dns #compare empty array and nill cause true, so at first test emptyness + #FIXME repair it when spliting of param is ready unless (dns.nameservers.empty? && params["nameservers"].blank?) - dirty = true unless ( dns.nameservers == params["nameservers"].split) + dirty = true unless ( dns.nameservers == params["nameservers"]) end unless (dns.searches.empty? && params["searchdomains"].blank?) - dirty = true if (dns.searches == params["searchdomains"].split) + dirty = true if (dns.searches == params["searchdomains"]) end logger.info "dirty after dns: #{dirty}" # FIXME: params bellow should be arrays -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org