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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.12.1
    • Compute
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: