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

Removal of "datacenter" var from 0.12.0 forces user to supply datacenter parameter to EC2NodeDriver.__init__()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.12.1
    • Component/s: Compute
    • Labels:
      None

      Description

      When I instantiate libcloud via get_driver(Provider.EC2_AP_SOUTHEAST), I'm returned a libcloud.compute.drivers.ec2.EC2APSENodeDriver object. Since the refactor to remove "datacenter", EC2NodeDriver._init_() sets my region back to "us-east-1".

      Previously this code worked:

      driver = get_driver(Provider.EC2_AP_SOUTHEAST)
      connection = driver(key, secret)

      Now I need:

      driver = get_driver(Provider.EC2_AP_SOUTHEAST)
      connection = driver(key, secret, datacenter="ap-southeast-1")

      Reference:

      https://github.com/apache/libcloud/commit/923704a204939eb50d547ad1bc9edc7a1108f158

        Attachments

          Activity

            People

            • Assignee:
              kami Tomaz Muraus
              Reporter:
              mafro Matt Black
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: