Uploaded image for project: 'Libcloud'
  1. Libcloud
  2. LIBCLOUD-139

Typo in Linode driver (hexlify)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 0.7.1
    • 0.8.0
    • Compute

    Description

      Traceback (most recent call last):
      File "/usr/local/bin/madelon", line 215, in <module>
      main()
      File "/usr/local/bin/madelon", line 143, in main
      node = conn.create_node(name=host, image=preferred_image[0], size=preferred_size[0], auth=pubkey, location=preferred_location[0])
      File "/usr/local/lib/python2.6/dist-packages/libcloud/compute/drivers/linode.py", line 303, in create_node
      root = u(binascii.hexlifyos.urandom(8).encode('hex'))
      AttributeError: 'module' object has no attribute 'hexlifyos'
      Build step 'Execute shell' marked build as failure

      I think this:

      root = u(binascii.hexlifyos.urandom(8).encode('hex'))

      should be something like this:

      root = u(binascii.hexlify(os.urandom(8)))

      You'll also need to 'import os' too.

      Patch: https://raw.github.com/gist/1564685/2993088d4e50b003ebcf6b4bd631a2ca6839f3e6/gistfile1.txt

      Attachments

        Activity

          People

            Unassigned Unassigned
            mig5 Miguel Jacq
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: