Skip to content

Commit ac1a597

Browse files
committed
update for 0.6.0 release
1 parent 60dd9dd commit ac1a597

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

README.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ SSH Key
8080
An ssh key is required for use by this plugin and the public key
8181
must be uploaded to the digital ocean control panel. By default
8282
all keys in the digital ocean account will be tried, so no user
83-
configuration is needed. A specific key to utilize can be specified with
84-
the environment variable DO_SSH_KEY="key_name" where key_name is the name of
83+
configuration is needed. A specific key to utilize can be specified with
84+
the environment variable DO_SSH_KEY="key_name" where key_name is the name of
8585
the key in the digital ocean management console.
8686

8787

@@ -170,14 +170,14 @@ these workloads together via relations like lego blocks::
170170

171171
$ juju add-relation wordpress mysql
172172

173-
We can list all machines in digitalocean that are part of the juju
174-
environment with the list-machines command. This directly queries the digital
175-
ocean api and does not interact with juju api. It also takes a --all option to
173+
We can list all machines in digitalocean that are part of the juju
174+
environment with the list-machines command. This directly queries the digital
175+
ocean api and does not interact with juju api. It also takes a --all option to
176176
list all machines in digitalocean account (irrespective of environment).::
177177

178178
$ juju docean list-machines
179179

180-
Id Name Size Status Created Region Address
180+
Id Name Size Status Created Region Address
181181
2442349 ocean-0 512MB active 2014-08-25 nyc2 162.243.123.121
182182
2442360 ocean-ef19ad5cc... 512MB active 2014-08-25 nyc2 162.243.51.21
183183
2442361 ocean-145bf7a80... 512MB active 2014-08-25 nyc2 104.131.201.155
@@ -195,7 +195,7 @@ And we can destroy the entire environment via::
195195
$ juju docean destroy-environment
196196

197197
destroy-environment also takes a --force option which only uses the
198-
digital ocean api. Its helpful if state server or other machines are
198+
digital ocean api. Its helpful if state server or other machines are
199199
killed independently of juju.
200200

201201
All commands have builtin help facilities and accept a -v option which will

juju_docean/commands.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,9 @@ def run(self):
165165
key=self.config.options.ssh_key))
166166

167167
for instance in self.runner.iter_results():
168-
168+
# V1 legacy support / TODO Remove 10/2015
169+
if isinstance(instance, tuple):
170+
instance, id = instance
169171
if getattr(instance, 'ip_address', None):
170172
info = "ip:%s" % instance.ip_address
171173
else:
@@ -188,7 +190,6 @@ def _machine_filter(self, mid, m):
188190
self.config.options.machines if mid != '0'])
189191

190192
def _terminate_machines(self, machine_filter=None):
191-
log.debug("Checking for machines to terminate %s", self.config.options.machines)
192193
status = self.env.status()
193194
machines = status.get('machines', {})
194195

@@ -198,7 +199,6 @@ def _terminate_machines(self, machine_filter=None):
198199
remove = []
199200
for m in machines:
200201
if machine_filter(m, machines[m]):
201-
log.debug("Removing machine %s:%s" % (m, machines[m]))
202202
remove.append(
203203
{'address': machines[m].get('dns-name'),
204204
'instance_id': machines[m]['instance-id'],

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from setuptools import setup, find_packages
22

33
setup(name='juju-docean',
4-
version="0.6.0-dev",
4+
version="0.6.0",
55
classifiers=[
66
'Intended Audience :: Developers',
77
'Programming Language :: Python',

0 commit comments

Comments
 (0)