Skip to content

Commit c47ea5d

Browse files
author
Matthew Fisher
committed
fix(client): print default string
When version is not specified in the arguments, you'd get a response: $ deis rollback Rolling back to vNone... This makes it print a default string if no version is specified.
1 parent c5b9697 commit c47ea5d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

client/deis.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1493,7 +1493,10 @@ def releases_rollback(self, args):
14931493
else:
14941494
body = {}
14951495
url = "/api/apps/{app}/releases/rollback".format(**locals())
1496-
sys.stdout.write('Rolling back to v{version}... '.format(**locals()))
1496+
if version:
1497+
sys.stdout.write('Rolling back to v{version}... '.format(**locals()))
1498+
else:
1499+
sys.stdout.write('Rolling back one release... ')
14971500
sys.stdout.flush()
14981501
try:
14991502
progress = TextProgress()

0 commit comments

Comments
 (0)