!13 Ensure that all output reaches the client when daemonized

From: @lb1107039128 
Reviewed-by: @Charlie_li 
Signed-off-by: @Charlie_li
This commit is contained in:
openeuler-ci-bot 2023-10-16 06:44:02 +00:00 committed by Gitee
commit 0263da9ac5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From 949c674b807ddfb312cbac234b1b995066c77dad Mon Sep 17 00:00:00 2001
From: Matt Coleman <matt@datto.com>
Date: Thu, 7 Nov 2019 19:43:57 -0500
Subject: [PATCH] Ensure that all output reaches the client when daemonized
---
configshell/console.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configshell/console.py b/configshell/console.py
index 8ed6b50..003a855 100644
--- a/configshell/console.py
+++ b/configshell/console.py
@@ -191,7 +191,7 @@ class Console(object):
break
else:
clean_text = text
- self.raw_write(clean_text)
+ self.raw_write(clean_text, output=self._stdout)
def indent(self, text, margin=2):
'''
--
2.42.0.windows.2

View File

@ -4,12 +4,14 @@
Name: python-configshell
Summary: Python library that provides a framework for building simple but nice CLI-based applications.
Version: 1.1.27
Release: 3
Release: 4
License: ASL 2.0
URL: https://github.com/open-iscsi/configshell-fb
Source0: https://github.com/open-iscsi/configshell-fb/archive/v1.1.27.tar.gz
BuildArch: noarch
Patch01: 0001-Ensure-that-all-output-reaches-the-client-when-daemo.patch
%global _description\
%{name} is a Python library that provides a framework for building simple but nice CLI-based applications.\
This runs with Python 3 and python 3 is run by setup.py to run on Python 3.\
@ -47,6 +49,9 @@ popd
%doc README.md
%changelog
* Fri Oct 13 2023 liubo <liubo1@xfusion.com> - 0.37.0-4
- Ensure that all output reaches the client when daemonized
* Wed Oct 21 2020 zhangtao <zhangtao221@huawei.com> - 1.1.27-3
- delete python2