mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Forgot to include the utils/vars.py change with 4cbe610
This commit is contained in:
parent
4cbe610263
commit
f82a2caa72
1 changed files with 7 additions and 0 deletions
|
@ -20,6 +20,8 @@ from __future__ import (absolute_import, division, print_function)
|
||||||
__metaclass__ = type
|
__metaclass__ = type
|
||||||
|
|
||||||
import ast
|
import ast
|
||||||
|
import os
|
||||||
|
|
||||||
from json import dumps
|
from json import dumps
|
||||||
from collections import MutableMapping
|
from collections import MutableMapping
|
||||||
|
|
||||||
|
@ -30,6 +32,11 @@ from ansible.errors import AnsibleError
|
||||||
from ansible.parsing.splitter import parse_kv
|
from ansible.parsing.splitter import parse_kv
|
||||||
from ansible.module_utils._text import to_native, to_text
|
from ansible.module_utils._text import to_native, to_text
|
||||||
|
|
||||||
|
cur_id = 0
|
||||||
|
def get_unique_id():
|
||||||
|
global cur_id
|
||||||
|
cur_id += 1
|
||||||
|
return "%s-%s" % (os.getpid(), cur_id)
|
||||||
|
|
||||||
def _validate_mutable_mappings(a, b):
|
def _validate_mutable_mappings(a, b):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue