mirror of
https://github.com/samba-team/samba.git
synced 2025-07-25 00:59:11 +03:00
gpo: Test rsop function for success
Signed-off-by: David Mulder <dmulder@suse.com> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
committed by
Jeremy Allison
parent
07ce480888
commit
dff01a5edf
@ -16,7 +16,7 @@
|
||||
|
||||
|
||||
import sys
|
||||
import os
|
||||
import os, shutil
|
||||
import errno
|
||||
import tdb
|
||||
sys.path.insert(0, "bin/python")
|
||||
@ -504,7 +504,7 @@ def rsop(lp, creds, gp_extensions, target):
|
||||
|
||||
print('Resultant Set of Policy')
|
||||
print('%s Policy\n' % target)
|
||||
term_width = os.get_terminal_size()[0]
|
||||
term_width = shutil.get_terminal_size(fallback=(120, 50))[0]
|
||||
for gpo in gpos:
|
||||
print('GPO: %s' % gpo.display_name)
|
||||
print('='*term_width)
|
||||
|
Reference in New Issue
Block a user