From: rmccabe@sourceware.org <rmccabe@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga/luci/site/luci/Extensions LuciValidation.py
Date: 31 Jul 2008 18:46:40 -0000 [thread overview]
Message-ID: <20080731184640.4374.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: conga
Branch: RHEL5
Changes by: rmccabe at sourceware.org 2008-07-31 18:46:40
Modified files:
luci/site/luci/Extensions: LuciValidation.py
Log message:
Fix the fix for bz429350
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/LuciValidation.py.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.6.2.6&r2=1.6.2.7
--- conga/luci/site/luci/Extensions/LuciValidation.py 2008/07/23 19:55:41 1.6.2.6
+++ conga/luci/site/luci/Extensions/LuciValidation.py 2008/07/31 18:46:40 1.6.2.7
@@ -1134,13 +1134,6 @@
errors.append('Restart expire time must be a number greater than or equal to 0')
restart_expire_time = None
- service_name = fvar['svc_name']
- if service_name is None:
- if LUCI_DEBUG_MODE is True:
- luci_log.debug_verbose('vSA5: no service name')
- errors.append('No service name was given')
-
-
migration_type = fvar['migration_type']
if migration_type is not None and migration_type != 'live' and migration_type != 'pause':
errors.append('Migration type must be either "live" or "pause"')
@@ -1194,7 +1187,6 @@
xvm.removeAttribute('domain')
except:
pass
-
if recovery:
xvm.addAttribute('recovery', recovery)
else:
@@ -1202,6 +1194,10 @@
xvm.removeAttribute('recovery')
except:
pass
+ if max_restarts is not None:
+ xvm.addAttribute('max_restarts', str(max_restarts))
+ if restart_expire_time is not None:
+ xvm.addAttribute('restart_expire_time', str(restart_expire_time))
if delete_vm is True:
action = VM_CONFIG
next reply other threads:[~2008-07-31 18:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-31 18:46 rmccabe [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-08-05 19:32 [Cluster-devel] conga/luci/site/luci/Extensions LuciValidation.py rmccabe
2007-12-12 15:43 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=20080731184640.4374.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.