From 478496b638d5e2b83f260a6073ec02c2567c7491 Mon Sep 17 00:00:00 2001 From: Vanessa Sochat Date: Thu, 7 Mar 2019 09:25:33 -0500 Subject: [PATCH] fixing bug that bot needs to do println and not print --- CHANGELOG.md | 1 + spython/logger/message.py | 2 +- spython/oci/__init__.py | 2 +- spython/version.py | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f9e692f..3f2c6e4a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ The client here will eventually be released as "spython" (and eventually to singularity on pypi), and the versions here will coincide with these releases. ## [master](https://github.com/singularityhub/singularity-cli/tree/master) + - print but with logger, should be println (0.0.57) - Fixing bug with instance not having name when not started (0.0.56) - instance start has been moved to non-private - Added ability for exec and run to return the full output and message (0.0.55) diff --git a/spython/logger/message.py b/spython/logger/message.py index fbd8357a..453bd729 100644 --- a/spython/logger/message.py +++ b/spython/logger/message.py @@ -245,7 +245,7 @@ def newline(self): def verbose(self, message): self.emit(VERBOSE, message, "VERBOSE") - def print(self, message): + def println(self, message): print(message) def verbose1(self, message): diff --git a/spython/oci/__init__.py b/spython/oci/__init__.py index 6fdb7048..46452eab 100644 --- a/spython/oci/__init__.py +++ b/spython/oci/__init__.py @@ -121,7 +121,7 @@ def _run_and_return(self, cmd, sudo=None): # Show the response to the user, only if not quiet. elif not self.quiet: - bot.print(result['message']) + bot.println(result['message']) # Return the state object to the user return result['return_code'] diff --git a/spython/version.py b/spython/version.py index fe5cefb9..eba47206 100644 --- a/spython/version.py +++ b/spython/version.py @@ -6,7 +6,7 @@ # with this file, You can obtain one at http://mozilla.org/MPL/2.0/. -__version__ = "0.0.56" +__version__ = "0.0.57" AUTHOR = 'Vanessa Sochat' AUTHOR_EMAIL = 'vsochat@stanford.edu' NAME = 'spython'