def acl_changed(module, cmd):
 if (get_platform().lower() == 'freebsd'):
  return True
 cmd = cmd[:]
 cmd.insert(1, '--test')
 lines = run_acl(module, cmd)
 for line in lines:
  if (not line.endswith('*,*')):
   return True
 return False

def acl_changed ( module , cmd ) : if ( get_platform ( ) . lower ( ) == 'freebsd' ) : return True cmd = cmd [ : ] cmd . insert ( 1 , '--test' ) lines = run_acl ( module , cmd ) for line in lines : if ( not line . endswith ( '*,*' ) ) : return True return False
returns true if the provided command affects the existing acls .