Skip to content

Commit bd5f76f

Browse files
author
Matthew Fisher
committed
fix(providers): update dop calls
Before dop v0.1.6, the call to get all SSH keys listed on your account was called all_ssh_keys(). In v0.1.6, they introduced a couple of breaking changes, including the change to rename all_ssh_keys() to ssh_keys(). ref: https://github.com/ahmontero/dop/blob/v1.6/dop/client.py#L196
1 parent 6617b70 commit bd5f76f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

controller/provider/digitalocean.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def destroy_layer(layer):
5454
conn = _create_digitalocean_connection(layer['creds'])
5555
name = "deis-{formation}-{id}".format(**layer)
5656
# retrieve and delete the SSH key created
57-
for k in conn.all_ssh_keys():
57+
for k in conn.ssh_keys():
5858
if k.name == name:
5959
conn.destroy_ssh_key(k.id)
6060

@@ -93,7 +93,7 @@ def _get_droplet_kwargs(node, conn):
9393
'size_id': _get_id(conn.sizes(), params.get('size', '4GB')),
9494
'image_id': _get_id(conn.images(my_images=True), params.get('image', 'deis-node-image')),
9595
'region_id': _get_id(conn.regions(), params.get('region', 'San Francisco 1')),
96-
'ssh_key_ids': [str(_get_id(conn.all_ssh_keys(),
96+
'ssh_key_ids': [str(_get_id(conn.ssh_keys(),
9797
"deis-{formation}-{layer}".format(**node)))],
9898
'virtio': True,
9999
'private_networking': True

0 commit comments

Comments
 (0)