cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: rmccabe@sourceware.org <rmccabe@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga/luci/site/luci/Extensions homebase_adapt ...
Date: 16 Oct 2006 15:18:32 -0000	[thread overview]
Message-ID: <20061016151832.14721.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/cluster
Module name:	conga
Changes by:	rmccabe at sourceware.org	2006-10-16 15:18:32

Modified files:
	luci/site/luci/Extensions: homebase_adapters.py 
	                           cluster_adapters.py 

Log message:
	bz# 206567

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/homebase_adapters.py.diff?cvsroot=cluster&r1=1.32&r2=1.33
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/cluster_adapters.py.diff?cvsroot=cluster&r1=1.114&r2=1.115

--- conga/luci/site/luci/Extensions/homebase_adapters.py	2006/10/16 04:26:19	1.32
+++ conga/luci/site/luci/Extensions/homebase_adapters.py	2006/10/16 15:18:32	1.33
@@ -184,7 +184,7 @@
 	error = 'Unable to authenticate to the ricci agent on \"' + host + '\"'
 	return { 'host': host, 'ricci_host': systemName, 'prev_auth': False , 'cur_auth': False, 'errors': error, 'os': os_str }
 
-def validateAddClusterInitial(self, request):
+def validateAddClusterInitial(self, request, must_complete=True):
 	errors = list()
 	newNodeList = list()
 	nodeHash = {}
@@ -271,7 +271,10 @@
 		x['cur_auth'] - y['cur_auth'] or (('errors' in y) - ('errors' in x)) 
 	newNodeList.sort(sfn)
 
-	dfn = lambda x: not 'cur_auth' in x or x['cur_auth'] != True
+	if must_complete == True:
+		dfn = lambda x: not 'cur_auth' in x or x['cur_auth'] != True
+	else:
+		dfn = lambda x: False
 
 	cluster_properties = {
 		'clusterName': clusterName,
@@ -287,7 +290,7 @@
 	return (len(errors) < 1,
 		{'errors': errors, 'requestResults': cluster_properties })
 
-def validateAddCluster(self, request):
+def validateAddCluster(self, request, must_complete=True):
 	errors = list()
 	messages = list()
 	requestResults = None
@@ -392,7 +395,11 @@
 			oldNode['errors'] = True
 		i += 1
 
-	dfn = lambda x: not 'cur_auth' in x or x['cur_auth'] != True
+	if must_complete == True:
+		dfn = lambda x: not 'cur_auth' in x or x['cur_auth'] != True
+	else:
+		dfn = lambda x: False
+
 	clusterComplete = len(filter(dfn, nodeList)) == 0
 
 	if clusterComplete:
@@ -616,7 +623,11 @@
 		try: request.SESSION.set('checkRet', {})
 		except: pass
 		return homebasePortal(self, request, '.', '0')
-	ret = validatorFn(self, request)
+
+	if validatorFn == validateAddClusterInitial or validatorFn == validateAddCluster:
+		ret = validatorFn(self, request, must_complete=False)
+	else:
+		ret = validatorFn(self, request)
 	params = None
 
 	if 'params' in ret[1]:
--- conga/luci/site/luci/Extensions/cluster_adapters.py	2006/10/16 05:27:59	1.114
+++ conga/luci/site/luci/Extensions/cluster_adapters.py	2006/10/16 15:18:32	1.115
@@ -1301,7 +1301,7 @@
 
 		if rc.authed():
 			return rc
-		setNodeFlag(node[1], CLUSTER_NODE_NEED_AUTH)
+		setNodeFlag(self, node[1], CLUSTER_NODE_NEED_AUTH)
 	return None
 
 def getRicciAgentForCluster(self, req):



             reply	other threads:[~2006-10-16 15:18 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-16 15:18 rmccabe [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-04-21 18:19 [Cluster-devel] conga/luci/site/luci/Extensions homebase_adapt rmccabe
2008-02-05 20:59 rmccabe
2007-06-06 15:14 rmccabe
2007-01-29 22:06 rmccabe
2007-01-08 19:49 rmccabe
2007-01-08 19:46 rmccabe
2006-11-02 21:12 rmccabe
2006-11-01 20:34 rmccabe
2006-10-30 20:20 rmccabe
2006-10-26 16:57 rmccabe
2006-10-13 17:12 rmccabe
2006-10-11 21:48 rmccabe
2006-10-11 18:44 rmccabe
2006-10-06 20:45 rmccabe
2006-10-06 18:58 rmccabe
2006-10-04 13:25 jparsons
2006-08-01 16:27 rmccabe
2006-07-27 13:37 jparsons
2006-07-26 19:50 rmccabe
2006-07-25 17:45 rmccabe
2006-07-18 19:26 rmccabe
2006-06-27 20:53 rmccabe
2006-06-27 20:47 rmccabe
2006-06-27 17:49 rmccabe
2006-06-26 20:10 rmccabe
2006-06-22  3:58 rmccabe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061016151832.14721.qmail@sourceware.org \
    --to=rmccabe@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).