summaryrefslogtreecommitdiff
path: root/heatclient
diff options
context:
space:
mode:
authorSteve Baker <sbaker@redhat.com>2012-10-16 06:51:23 +1000
committerSteve Baker <sbaker@redhat.com>2012-10-16 06:51:23 +1000
commit317757c1646635de29b622f422432c1fc74dc6fb (patch)
tree784742f45d499f1ab3fc1c10cdb54b1a2df73f3c /heatclient
parentb03183ce3fa1e7d0c505179e7cc7972b677ff36c (diff)
downloadpython-heatclient-317757c1646635de29b622f422432c1fc74dc6fb.tar.gz
Mock at the json request level instead of the http connection level. Test create.
Diffstat (limited to 'heatclient')
-rw-r--r--heatclient/common/utils.py1
-rw-r--r--heatclient/v1/stacks.py4
2 files changed, 1 insertions, 4 deletions
diff --git a/heatclient/common/utils.py b/heatclient/common/utils.py
index 69635ed..95e3ec1 100644
--- a/heatclient/common/utils.py
+++ b/heatclient/common/utils.py
@@ -53,7 +53,6 @@ def print_list(objs, fields, formatters={}):
data = getattr(o, field_name, None) or ''
row.append(data)
pt.add_row(row)
-
print pt.get_string(sortby=fields[0])
diff --git a/heatclient/v1/stacks.py b/heatclient/v1/stacks.py
index 8e205ae..6ac3ef9 100644
--- a/heatclient/v1/stacks.py
+++ b/heatclient/v1/stacks.py
@@ -53,7 +53,6 @@ class StackManager(base.Manager):
structure of a stack object
:rtype: list of :class:`Stack`
"""
- print kwargs
absolute_limit = kwargs.get('limit')
def paginate(qp, seen=0):
@@ -88,9 +87,8 @@ class StackManager(base.Manager):
def create(self, **kwargs):
"""Create a stack"""
- resp, body_iter = self.api.json_request(
+ resp, body = self.api.json_request(
'POST', '/stacks', body=kwargs)
- body = json.loads(''.join([c for c in body_iter]))
return Stack(self, body)
def delete(self, stack_id):