Skip to contentSkip to conversation

conga/luci plone-custom/conga_ajax.js site/luc ...

Cluster-devel [email protected] 1 participant 1 message Aug 8, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2007-08-08 21:26:37

Modified files:
luci/plone-custom: conga_ajax.js luci/site/luci/Extensions: FenceHandler.py cluster_adapters.py

Log message:
sync with RHEL5 branch

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/plone-custom/conga_ajax.js.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/FenceHandler.py.diff?cvsroot=cluster&r1=1.21&r2=1.22
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/cluster_adapters.py.diff?cvsroot=cluster&r1=1.265&r2=1.266

luci/plone-custom/conga_ajax.js +9 -0
@@ -1,3 +1,12 @@
+/*
+** Copyright (C) 2007 Red Hat, Inc.
+**
+** This program is free software; you can redistribute
+** it and/or modify it under the terms of version 2 of the
+** GNU General Public License as published by the
+** Free Software Foundation.
+*/
+
 var xmlHttp_object = false;
 
 function initiate_async_get(url, callback_function) {
luci/site/luci/Extensions/FenceHandler.py +5 -1
@@ -246,7 +246,11 @@
 	try:
 		pwd = form['passwd'].strip()
 		if not pwd:
-			raise Exception, 'blank'
+			# Allow passwords that consist of only spaces.
+			if not form.has_key('passwd') or form['passwd'] == '':
+				raise Exception, 'blank'
+			else:
+				pwd = form['passwd']
 		fencedev.addAttribute('passwd', pwd)
 		has_passwd = True
 	except Exception, e:
luci/site/luci/Extensions/cluster_adapters.py +1 -1
@@ -2136,7 +2136,7 @@
 
 	host_list = fvars['__NODE_HOSTNAME__']
 	if not host_list:
-		return (False, { 'errors': [ 'No cluster node addresses were given', '%r' % request.form ]})
+		return (False, { 'errors': [ 'No cluster node addresses were given' ]})
 
 	baseurl = fvars['URL'] or LUCI_CLUSTER_BASE_URL