conga/luci/site/luci/Extensions FenceHandler.py
CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2007-12-11 15:54:16
Modified files:
luci/site/luci/Extensions: FenceHandler.py
Log message:
fix 379461
luci/site/luci/Extensions/FenceHandler.py +11 -0
@@ -643,6 +643,17 @@ if not has_passwd: errors.append(FD_PROVIDE_PASSWD) + try: + modulename = form['modulename'].strip() + if not modulename: + raise Exception, 'blank' + fencedev.addAttribute('modulename', modulename) + except Exception, e: + try: + fencedev.removeAttribute('modulename') + except: + pass + return errors def val_rps10_fd(form, fencedev):