@ -21,7 +21,6 @@ __metaclass__ = type
import itertools
import itertools
import operator
import operator
import uuid
from copy import copy as shallowcopy
from copy import copy as shallowcopy
from functools import partial
from functools import partial
@ -34,7 +33,7 @@ from ansible.module_utils._text import to_text
from ansible . playbook . attribute import Attribute , FieldAttribute
from ansible . playbook . attribute import Attribute , FieldAttribute
from ansible . parsing . dataloader import DataLoader
from ansible . parsing . dataloader import DataLoader
from ansible . constants import mk_boolean as boolean
from ansible . constants import mk_boolean as boolean
from ansible . utils . vars import combine_vars , isidentifier
from ansible . utils . vars import combine_vars , isidentifier , get_unique_id
try :
try :
from __main__ import display
from __main__ import display
@ -184,7 +183,7 @@ class Base(with_metaclass(BaseMeta, object)):
self . _finalized = False
self . _finalized = False
# every object gets a random uuid:
# every object gets a random uuid:
self . _uuid = uuid. uuid4 ( )
self . _uuid = get_unique_id ( )
# we create a copy of the attributes here due to the fact that
# we create a copy of the attributes here due to the fact that
# it was intialized as a class param in the meta class, so we
# it was intialized as a class param in the meta class, so we