You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2019/12/21 11:45:47 UTC

[libcloud] 07/09: Improve __repr__ if script didn't run yet.

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 <to...@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, "