diff mbox

[Branch,~linaro-validation/lava-dispatcher/trunk] Rev 417: string_to_list(boot_cmds) not working on older python

Message ID 20121023185411.6891.83659.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Andy Doan Oct. 23, 2012, 6:54 p.m. UTC
------------------------------------------------------------
revno: 417
committer: Andy Doan <andy.doan@linaro.org>
branch nick: lava-dispatcher
timestamp: Tue 2012-10-23 12:58:40 -0500
message:
  string_to_list(boot_cmds) not working on older python
  
  The version of python we are running in production hits a problem
  related to our new use of configglue. configglue passes a value
  like "boot_cmds" as a unicode string. Our string_to_list implementation
  on control isn't able to convert this to a list.
modified:
  lava_dispatcher/__init__.py
  lava_dispatcher/device/master.py


--
lp:lava-dispatcher
https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk

You are subscribed to branch lp:lava-dispatcher.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'lava_dispatcher/__init__.py'
--- lava_dispatcher/__init__.py	2012-10-23 05:27:27 +0000
+++ lava_dispatcher/__init__.py	2012-10-23 17:58:40 +0000
@@ -18,4 +18,4 @@ 
 # along
 # with this program; if not, see <http://www.gnu.org/licenses>.
 
-__version__ = (0, 20, 0, "dev", 0)
+__version__ = (0, 19, 3, "final", 0)

=== modified file 'lava_dispatcher/device/master.py'
--- lava_dispatcher/device/master.py	2012-10-18 18:00:43 +0000
+++ lava_dispatcher/device/master.py	2012-10-23 17:58:40 +0000
@@ -424,7 +424,7 @@ 
                 boot_cmds = keyval[1].strip()
 
         boot_cmds = getattr(self.config, boot_cmds)
-        self._boot(string_to_list(boot_cmds))
+        self._boot(string_to_list(boot_cmds.encode('ascii')))
 
     def _boot(self, boot_cmds):
         try: