Twisted feature flag support fails typecasting when updating

Bug #1263002 reported by Stuart Bishop on 2013-12-20
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Launchpad itself
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'

Related branches

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

Other bug subscribers