SLicehost isn't a thing anymore

Signed-off-by: Tomaz Muraus <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/ae3fe985
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/ae3fe985
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/ae3fe985

Branch: refs/heads/trunk
Commit: ae3fe9850f05831c6591408cfbf46837be4c033a
Parents: 2cf29ef
Author: Alex Gaynor <[email protected]>
Authored: Fri Dec 13 11:10:04 2013 -0800
Committer: Tomaz Muraus <[email protected]>
Committed: Sat Dec 14 10:46:39 2013 +0100

----------------------------------------------------------------------
 docs/examples/compute/list_nodes_across_multiple_providers.py | 5 +----
 example_compute.py                                            | 4 +---
 2 files changed, 2 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/ae3fe985/docs/examples/compute/list_nodes_across_multiple_providers.py
----------------------------------------------------------------------
diff --git a/docs/examples/compute/list_nodes_across_multiple_providers.py 
b/docs/examples/compute/list_nodes_across_multiple_providers.py
index d3d19fc..f8ebb0c 100644
--- a/docs/examples/compute/list_nodes_across_multiple_providers.py
+++ b/docs/examples/compute/list_nodes_across_multiple_providers.py
@@ -3,16 +3,13 @@ from libcloud.compute.providers import get_driver
 
 EC2_ACCESS_ID = 'your access id'
 EC2_SECRET_KEY = 'your secret key'
-SLICEHOST_API_KEY = 'your api key'
 RACKSPACE_USER = 'your username'
 RACKSPACE_KEY = 'your key'
 
 EC2Driver = get_driver(Provider.EC2)
-SlicehostDriver = get_driver(Provider.SLICEHOST)
 RackspaceDriver = get_driver(Provider.RACKSPACE)
 
 drivers = [EC2Driver(EC2_ACCESS_ID, EC2_SECRET_KEY),
-           SlicehostDriver(SLICEHOST_API_KEY),
            RackspaceDriver(RACKSPACE_USER, RACKSPACE_KEY)]
 
 nodes = []
@@ -20,7 +17,7 @@ for driver in drivers:
     nodes += driver.list_nodes()
 print nodes
 # [ <Node: provider=Amazon, status=RUNNING, name=bob, ip=1.2.3.4.5>,
-#   <Node: provider=Slicehost, status=REBOOT, name=korine, ip=6.7.8.9>, ... ]
+#   <Node: provider=Rackspace, status=REBOOT, name=korine, ip=6.7.8.9>, ... ]
 
 # Reboot all nodes named 'test'
 [node.reboot() for node in nodes if node.name == 'test']

http://git-wip-us.apache.org/repos/asf/libcloud/blob/ae3fe985/example_compute.py
----------------------------------------------------------------------
diff --git a/example_compute.py b/example_compute.py
index 7058cd0..ed57184 100644
--- a/example_compute.py
+++ b/example_compute.py
@@ -17,18 +17,16 @@ from libcloud.compute.types import Provider
 from libcloud.compute.providers import get_driver
 
 EC2 = get_driver(Provider.EC2_US_EAST)
-Slicehost = get_driver(Provider.SLICEHOST)
 Rackspace = get_driver(Provider.RACKSPACE)
 
 drivers = [EC2('access key id', 'secret key'),
-           Slicehost('api key'),
            Rackspace('username', 'api key')]
 
 nodes = [driver.list_nodes() for driver in drivers]
 
 print(nodes)
 # [ <Node: provider=Amazon, status=RUNNING, name=bob, ip=1.2.3.4.5>,
-# <Node: provider=Slicehost, status=REBOOT, name=korine, ip=6.7.8.9.10>, ... ]
+# <Node: provider=Rackspace, status=REBOOT, name=korine, ip=6.7.8.9.10>, ... ]
 
 # grab the node named "test"
 node = [n for n in nodes if n.name == 'test'][0]

Reply via email to