Skip to content

Commit

Permalink
update for 0.6.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kapilt committed Jul 5, 2015
1 parent 60dd9dd commit ac1a597
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ SSH Key
An ssh key is required for use by this plugin and the public key
must be uploaded to the digital ocean control panel. By default
all keys in the digital ocean account will be tried, so no user
configuration is needed. A specific key to utilize can be specified with
the environment variable DO_SSH_KEY="key_name" where key_name is the name of
configuration is needed. A specific key to utilize can be specified with
the environment variable DO_SSH_KEY="key_name" where key_name is the name of
the key in the digital ocean management console.


Expand Down Expand Up @@ -170,14 +170,14 @@ these workloads together via relations like lego blocks::

$ juju add-relation wordpress mysql

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

$ juju docean list-machines

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

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

All commands have builtin help facilities and accept a -v option which will
Expand Down
6 changes: 3 additions & 3 deletions juju_docean/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ def run(self):
key=self.config.options.ssh_key))

for instance in self.runner.iter_results():

# V1 legacy support / TODO Remove 10/2015
if isinstance(instance, tuple):
instance, id = instance
if getattr(instance, 'ip_address', None):
info = "ip:%s" % instance.ip_address
else:
Expand All @@ -188,7 +190,6 @@ def _machine_filter(self, mid, m):
self.config.options.machines if mid != '0'])

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

Expand All @@ -198,7 +199,6 @@ def _terminate_machines(self, machine_filter=None):
remove = []
for m in machines:
if machine_filter(m, machines[m]):
log.debug("Removing machine %s:%s" % (m, machines[m]))
remove.append(
{'address': machines[m].get('dns-name'),
'instance_id': machines[m]['instance-id'],
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages

setup(name='juju-docean',
version="0.6.0-dev",
version="0.6.0",
classifiers=[
'Intended Audience :: Developers',
'Programming Language :: Python',
Expand Down

0 comments on commit ac1a597

Please sign in to comment.