[Python-modules-commits] [python-cs] 01/01: New upstream release.
Vincent Bernat
bernat at moszumanska.debian.org
Sun Dec 25 09:24:28 UTC 2016
This is an automated email from the git hooks/post-receive script.
bernat pushed a commit to annotated tag upstream/0.9.1
in repository python-cs.
commit 7786dea7dad3c9824c87ad18223016691fe69b2f
Author: Vincent Bernat <bernat at debian.org>
Date: Tue Nov 1 19:50:49 2016 +0100
New upstream release.
---
cs.py | 9 ++++++---
setup.py | 2 +-
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/cs.py b/cs.py
index 359cd85..2337676 100644
--- a/cs.py
+++ b/cs.py
@@ -265,10 +265,12 @@ def main():
try:
response = getattr(cs, command)(**kwargs)
except CloudStackException as e:
- response = e.args[2]
+ response = e.args[1]
if not options.quiet:
- sys.stderr.write("Cloudstack error:\n")
- ok = False
+ sys.stderr.write("Cloudstack error: HTTP response "
+ "{0}\n".format(response.status_code))
+ sys.stderr.write(response.text)
+ sys.exit(1)
if 'Async' not in command and 'jobid' in response and not options.async:
if not options.quiet:
@@ -292,6 +294,7 @@ def main():
if pygments and sys.stdout.isatty():
data = pygments.highlight(data, JsonLexer(), TerminalFormatter())
sys.stdout.write(data)
+ sys.stdout.write('\n')
sys.exit(int(not ok))
diff --git a/setup.py b/setup.py
index 496ef5f..7365c9a 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ with open('README.rst', 'r') as f:
setup(
name='cs',
- version='0.9.0',
+ version='0.9.1',
url='https://github.com/exoscale/cs',
license='BSD',
author=u'Bruno Renié',
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-cs.git
More information about the Python-modules-commits
mailing list