fix module that it reports the correct status of a change (#65061)

pull/65093/head
tcraxs 5 years ago committed by ansibot
parent 4270df1fa2
commit bc92170242

@ -0,0 +1,2 @@
bugfixes:
- postgresql_privs.py - fix reports as changed behavior of module when using ``type=default_privs`` (https://github.com/ansible/ansible/issues/64371).

@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-
# Copyright: Ansible Project
# Copyright: (c) 2019, Tobias Birkefeld (@tcraxs) <t@craxs.de>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
@ -194,6 +195,7 @@ extends_documentation_fragment:
author:
- Bernhard Weitzhofer (@b6d)
- Tobias Birkefeld (@tcraxs)
'''
EXAMPLES = r'''
@ -778,7 +780,7 @@ class Connection(object):
executed_queries.append(query)
self.cursor.execute(query)
status_after = get_status(objs)
return status_before != status_after
return status_before.sort() != status_after.sort()
class QueryBuilder(object):

Loading…
Cancel
Save