libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [libcloud] 07/09: Improve __repr__ if script didn't run yet.
Date Sat, 21 Dec 2019 11:45:47 GMT
This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git

commit 6d922eb88c9f86b2a3df33133c8530c3bcb63078
Author: Tomaz Muraus <tomaz@tomaz.me>
AuthorDate: Sat Dec 21 12:31:36 2019 +0100

    Improve __repr__ if script didn't run yet.
---
 libcloud/compute/deployment.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libcloud/compute/deployment.py b/libcloud/compute/deployment.py
index cf9d5ff..0328725 100644
--- a/libcloud/compute/deployment.py
+++ b/libcloud/compute/deployment.py
@@ -220,6 +220,7 @@ class ScriptDeployment(Deployment):
             stdout = self.stdout[:30] + '...'
             stderr = self.stderr[:30] + '...'
         else:
+            exit_status = 'script didn\'t run yet'
             stdout = None
             stderr = None
         return ("<ScriptDeployment script=%s, exit_status=%s, stdout=%s, "


Mime
View raw message