Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix deprecation warnings #8

Merged
merged 1 commit into from

2 participants

@Jc2k

The current stable release of libcloud deprecates the API overmind uses - this changes the import to use the current API.

@tobami
Owner

Cool, thanks a lot. I was aware of these recent changes to the libcloud API, but hadn't got around to fix it yet.

Will test it thoroughly when I go on triaging #6

@tobami tobami merged commit 2e4c029 into tobami:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 5, 2011
  1. @Jc2k

    Fix deprecation warnings

    Jc2k authored
This page is out of date. Refresh to see the latest.
View
10 overmind/provisioning/controllers.py
@@ -1,8 +1,8 @@
-from libcloud import types
-from libcloud.base import NodeAuthPassword, NodeAuthSSHKey, Node
-from libcloud.base import NodeImage, NodeSize, NodeLocation
-from libcloud.providers import get_driver
-from libcloud.deployment import SSHKeyDeployment
+from libcloud.compute import types
+from libcloud.compute.base import NodeAuthPassword, NodeAuthSSHKey, Node
+from libcloud.compute.base import NodeImage, NodeSize, NodeLocation
+from libcloud.compute.providers import get_driver
+from libcloud.compute.deployment import SSHKeyDeployment
from provisioning import plugins
from django.conf import settings
import copy, logging
View
4 overmind/provisioning/plugins/dedicated.py
@@ -1,6 +1,6 @@
# Dedicated Hardware plugin
-from libcloud.base import ConnectionKey, NodeDriver, Node
-from libcloud.types import NodeState
+from libcloud.compute.base import ConnectionKey, NodeDriver, Node
+from libcloud.compute.types import NodeState
display_name = "Dedicated Hardware"
access_key = None
View
4 overmind/provisioning/plugins/hetzner.py
@@ -1,6 +1,6 @@
# Hetzner plugin
-from libcloud.base import ConnectionUserAndKey, NodeDriver, Node
-from libcloud.types import NodeState, InvalidCredsException
+from libcloud.compute.base import ConnectionUserAndKey, NodeDriver, Node
+from libcloud.compute.types import NodeState, InvalidCredsException
import httplib2
import simplejson as json
from urllib import urlencode
Something went wrong with that request. Please try again.