** Changed in: cloud-init
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1075756

Title:
  String escape not unicode

Status in Init scripts for use on cloud images:
  Fix Released

Bug description:
  Odd error:

  Here is log.

  Traceback (most recent call last):
    File "/usr/bin/cloud-init", line 267, in main_init
      freq=PER_INSTANCE)
    File "/usr/lib/python2.6/site-packages/cloudinit/cloud.py", line 63, in run
      return self._runners.run(name, functor, args, freq, clear_on_fail)
    File "/usr/lib/python2.6/site-packages/cloudinit/helpers.py", line 179, in 
run
      return (True, results)
    File "/usr/lib64/python2.6/contextlib.py", line 34, in __exit__
      self.gen.throw(type, value, traceback)
    File "/usr/lib/python2.6/site-packages/cloudinit/helpers.py", line 81, in 
lock
      yield self._acquire(name, freq)
    File "/usr/lib/python2.6/site-packages/cloudinit/helpers.py", line 178, in 
run
      results = functor(*args)
    File "/usr/lib/python2.6/site-packages/cloudinit/stages.py", line 402, in 
consume_userdata
      handlers.walk(user_data_msg, handlers.walker_callback, data=part_data)
    File "/usr/lib/python2.6/site-packages/cloudinit/handlers/__init__.py", 
line 202, in walk
      callback(data, ctype, filename, part.get_payload(decode=True))
    File "/usr/lib/python2.6/site-packages/cloudinit/handlers/__init__.py", 
line 174, in walker_callback
      details = "'%s...'" % (start.encode("string-escape"))
  TypeError: escape_encode() argument 1 must be string, not unicode

  Seems like we must force this to be a string, and not allow unicde
  here...

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1075756/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to