mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 08:13:08 +00:00
Forgot to include the utils/vars.py change with 4cbe610
This commit is contained in:
@@ -20,6 +20,8 @@ from __future__ import (absolute_import, division, print_function)
|
||||
__metaclass__ = type
|
||||
|
||||
import ast
|
||||
import os
|
||||
|
||||
from json import dumps
|
||||
from collections import MutableMapping
|
||||
|
||||
@@ -30,6 +32,11 @@ from ansible.errors import AnsibleError
|
||||
from ansible.parsing.splitter import parse_kv
|
||||
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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user