commit 20245e4a0daff55dabb73cf57c0dfd30025d0714 Author: Ryan McCabe rmccabe@redhat.com Date: Thu Mar 8 11:57:35 2012 -0500
Fix the redirect when creating resources to avoid the server confusing part of the resource name for an extension that has a mime type
luci/controllers/cluster.py | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) --- diff --git a/luci/controllers/cluster.py b/luci/controllers/cluster.py index c59c9e4..871ef84 100644 --- a/luci/controllers/cluster.py +++ b/luci/controllers/cluster.py @@ -583,12 +583,11 @@ class IndividualClusterController(BaseController): if vret[0] is True: # For IP resources there is no name, just an IP Address # and to make IP addresses work you need to add a .html + redir_fmt = '%s/%s.html' if res_type == 'ip': res_name = kw.get('address') - redir_fmt = '%s/%s.html' else: res_name = kw.get('resourcename') - redir_fmt = '%s/%s' log.info('User "%s" %s global resource "%s" in cluster "%s"' % (self.username, cur_action, res_name, self.name)) flash(_('%s global resource "%s"') % (cur_action, res_name))
luci-commits@lists.fedorahosted.org