Skip to content

Commit 316d286

Browse files
author
Clark Perkins
committed
Fixed a couple more things
1 parent 7e3b417 commit 316d286

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

stackdio/client/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ def create_security_group(self, name, description, cloud_provider, is_default=Tr
7979
}
8080
return self._post(endpoint, data=json.dumps(data), jsonify=True)
8181

82-
@endpoint("settings/")
82+
@endpoint("user/")
8383
def get_public_key(self):
84-
"""Get the public key for the logged in uesr"""
85-
return self._get(endpoint, jsonify=True)['public_key']
84+
"""Get the public key for the logged in user"""
85+
return self._get(endpoint, jsonify=True)['settings']['public_key']
8686

8787
@endpoint("settings/")
8888
def set_public_key(self, public_key):

stackdio/client/blueprint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ def create_blueprint(self, blueprint, provider="ec2"):
3333
if 'formula_versions' in blueprint:
3434
all_formulas = self.list_formulas()
3535

36-
used_formulas = set()
36+
used_formulas = []
3737

3838
for formula_version in blueprint['formula_versions']:
3939
for formula in all_formulas:
4040
if formula['uri'] == formula_version['formula']:
4141
formula['version'] = formula_version['version']
42-
used_formulas.add(formula)
42+
used_formulas.append(formula)
4343
break
4444

4545
for formula in used_formulas:

0 commit comments

Comments
 (0)