summaryrefslogtreecommitdiff
path: root/lib/ansible/inventory
diff options
context:
space:
mode:
authorBrian Coca <brian.coca+git@gmail.com>2017-10-24 09:55:28 -0400
committerBrian Coca <bcoca@users.noreply.github.com>2017-10-24 11:12:18 -0400
commit506e6a0b2d49a147e1c0c0b301c71163ea785d71 (patch)
tree39d5e43d8afdae9402ceb3d5a37867c928cc3265 /lib/ansible/inventory
parent725ae96e1bb7790cec4a56a9a8a9c5bcb3182951 (diff)
downloadansible-506e6a0b2d49a147e1c0c0b301c71163ea785d71.tar.gz
removing deepcopy as it does not work
it cannot handle deep crossreferenced objects need to find alternative approach.
Diffstat (limited to 'lib/ansible/inventory')
-rw-r--r--lib/ansible/inventory/manager.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/ansible/inventory/manager.py b/lib/ansible/inventory/manager.py
index 4b5c0d7cb8..a6a29b063f 100644
--- a/lib/ansible/inventory/manager.py
+++ b/lib/ansible/inventory/manager.py
@@ -24,8 +24,6 @@ import os
import re
import itertools
-from copy import deepcopy
-
from ansible import constants as C
from ansible.errors import AnsibleError, AnsibleOptionsError, AnsibleParserError
from ansible.inventory.data import InventoryData
@@ -260,11 +258,7 @@ class InventoryManager(object):
if plugin.verify_file(source):
try:
# in case plugin fails 1/2 way we dont want partial inventory
- inventory = deepcopy(self._inventory)
- plugin.parse(inventory, self._loader, source, cache=cache)
-
- # plugin worked! so lets use the more complete inventory
- self._inventory = inventory
+ plugin.parse(self._inventory, self._loader, source, cache=cache)
parsed = True
display.vvv('Parsed %s inventory source with %s plugin' % (to_native(source), plugin_name))
break