diff options
author | Andrew Bartlett <abartlet@samba.org> | 2019-03-10 23:38:27 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2019-03-12 01:53:26 +0000 |
commit | 31aecee1446c5006771aaa535ae85810bbfb5db0 (patch) | |
tree | e888f35b989a2460b364b6a215d432719a6c1646 /python/samba/netcmd | |
parent | 1364ae3aeb9cf49c5516497f0b02f0ed4c5c147f (diff) | |
download | samba-31aecee1446c5006771aaa535ae85810bbfb5db0.tar.gz |
samba-tool domain provision: Fix --interactive module in python3
The prompts were not being printed to the screen because the stream
was not being flushed.
As reported on the samba mailing list by Adam Xu:
https://lists.samba.org/archive/samba/2019-March/221753.html
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13828
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Tim Beale <timbeale@catalyst.net.nz>
Diffstat (limited to 'python/samba/netcmd')
-rw-r--r-- | python/samba/netcmd/domain.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/python/samba/netcmd/domain.py b/python/samba/netcmd/domain.py index b7aedc16a91..2aebb5f8166 100644 --- a/python/samba/netcmd/domain.py +++ b/python/samba/netcmd/domain.py @@ -390,6 +390,7 @@ class cmd_domain_provision(Command): print("%s [%s]: " % (prompt, default), end=' ') else: print("%s: " % (prompt,), end=' ') + sys.stdout.flush() return sys.stdin.readline().rstrip("\n") or default try: |