Skip to content

Commit 3dbf3e4

Browse files
committed
Fixed bugs with valid actions, incremented version
1 parent 3a4ed80 commit 3dbf3e4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

stackdio/client/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,8 @@ def launch_stack(self, stack_data):
340340

341341

342342
@endpoint("stacks/{stack_id}/hosts/")
343-
def describe_hosts(self, stack_id, key="fqdn", ec2=False, criteria=None):
344-
"""Retrieve a list of info about a stack. Defaults to the fqdn for each
343+
def describe_hosts(self, stack_id, key="fqdn", ec2=False):
344+
"""Retrieve a list of info about a stack. Defaults to the id for each
345345
host, but you can specify any available key. Setting ec2=True will
346346
force it to inspect the ec2_metadata field."""
347347

@@ -375,7 +375,7 @@ def delete_stack(self, stack_id):
375375

376376
@endpoint("stacks/{stack_id}/action/")
377377
def get_valid_actions(self, stack_id):
378-
return self._get(endpoint, jsonify=True)['result']
378+
return self._get(endpoint, jsonify=True)['available_actions']
379379

380380

381381
@endpoint("stacks/{stack_id}/action/")

stackdio/client/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.0.2"
1+
__version__ = "0.0.3"

0 commit comments

Comments
 (0)