Twisted feature flag support fails typecasting when updating

Bug #1263002 reported by Stuart Bishop
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Stuart Bishop

Bug Description

Feature flag values are strings, but we need to cast it to an integer.

   File "/srv/staging.launchpad.net/staging/launchpad/lib/lp/services/twistedsupport/features.py", line 39, in update
     _install_and_reschedule(controller, script_name)
   File "/srv/staging.launchpad.net/staging/launchpad/lib/lp/services/twistedsupport/features.py", line 52, in _install_and_reschedule
     getFeatureFlag('twisted.flags.refresh') or 30, update, script_name)
   File "/srv/staging.launchpad.net/staging/launchpad/eggs/Twisted-13.0.0-py2.6-linux-x86_64.egg/twisted/internet/base.py", line 708, in callLater
     tple = DelayedCall(self.seconds() + _seconds, _f, args, kw,
 exceptions.TypeError: unsupported operand type(s) for +: 'float' and 'unicode'

Tags: qa-ok

Related branches

Stuart Bishop (stub)
Changed in launchpad:
status: New → In Progress
assignee: nobody → Stuart Bishop (stub)
Stuart Bishop (stub)
Changed in launchpad:
importance: Undecided → Medium
Stuart Bishop (stub)
Changed in launchpad:
status: In Progress → Fix Committed
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
William Grant (wgrant)
tags: added: qa-ok
removed: qa-needstesting
William Grant (wgrant)
Changed in launchpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.