From d0e01dd77f9f2a18b4a7a808104da7de8d34c113 Mon Sep 17 00:00:00 2001 From: alfonso-escribano Date: Mon, 31 May 2021 10:57:36 +0200 Subject: [PATCH] Clean old ansible versions commented code --- plugins/modules/acl.py | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/plugins/modules/acl.py b/plugins/modules/acl.py index 89f029c..6b359bb 100644 --- a/plugins/modules/acl.py +++ b/plugins/modules/acl.py @@ -280,30 +280,6 @@ def acl_changed(module, cmd, check_rc=True): # left, there is no need to call select() again. break -# proc.stdout.close() -# proc.stderr.close() -# selector.close() - - -# while True: -# output = proc.stdout.readline() -# if output == '' and proc.poll() is not None: -# break -# if _acl_module._acl_changed: -# continue -# lines = [] -# for l in output.splitlines(): -# lines.append(l.strip()) -# for line in lines: -# if not line.endswith(b'*,*'): -# proc.terminate() -# while True: -# output = proc.stdout.readline() -# if output == '' and proc.poll() is not None: -# break -# proc.returncode=0 -# _acl_module._acl_changed=True - try: (rc, out, err) = module.run_command( cmd, check_rc=check_rc,