Ensure that all output reaches the client when daemonized
Signed-off-by: liubo <liubo1@xfusion.com>
This commit is contained in:
parent
524c70d42d
commit
9f6d680920
@ -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
|
||||||
|
|
||||||
@ -4,12 +4,14 @@
|
|||||||
Name: python-configshell
|
Name: python-configshell
|
||||||
Summary: Python library that provides a framework for building simple but nice CLI-based applications.
|
Summary: Python library that provides a framework for building simple but nice CLI-based applications.
|
||||||
Version: 1.1.27
|
Version: 1.1.27
|
||||||
Release: 3
|
Release: 4
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: https://github.com/open-iscsi/configshell-fb
|
URL: https://github.com/open-iscsi/configshell-fb
|
||||||
Source0: https://github.com/open-iscsi/configshell-fb/archive/v1.1.27.tar.gz
|
Source0: https://github.com/open-iscsi/configshell-fb/archive/v1.1.27.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
|
Patch01: 0001-Ensure-that-all-output-reaches-the-client-when-daemo.patch
|
||||||
|
|
||||||
%global _description\
|
%global _description\
|
||||||
%{name} is a Python library that provides a framework for building simple but nice CLI-based applications.\
|
%{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.\
|
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
|
%doc README.md
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Oct 21 2020 zhangtao <zhangtao221@huawei.com> - 1.1.27-3
|
||||||
- delete python2
|
- delete python2
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user