fix module that it reports the correct status of a change (#65061)
This commit is contained in:
parent
4270df1fa2
commit
bc92170242
2 changed files with 5 additions and 1 deletions
|
@ -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…
Reference in a new issue