Merge "fix some typo error"
This commit is contained in:
commit
95f9143266
@ -41,7 +41,7 @@ def append_if(array, item):
|
||||
|
||||
:param array: ``list`` List object to append to
|
||||
:param item: ``object`` Object to append to the list
|
||||
:returns bool: Flag indicating whether the append happend (True)
|
||||
:returns bool: Flag indicating whether the append happened (True)
|
||||
or not (False)
|
||||
"""
|
||||
if item not in array:
|
||||
@ -73,7 +73,7 @@ def recursive_dict_removal(inventory, purge_list):
|
||||
Only items in child dictionaries and lists are removed.
|
||||
|
||||
Dictionary keys can only be deleted at the 3rd level (e.g in
|
||||
inventory['top']['middle']['bottom'], only 'bottom' would be targetted by
|
||||
inventory['top']['middle']['bottom'], only 'bottom' would be targeted by
|
||||
this function)
|
||||
|
||||
:param inventory: ``dict`` Dictionary representing the inventory
|
||||
|
@ -12,6 +12,6 @@ other:
|
||||
directory has been removed. This file was making
|
||||
compatibility difficult for deployers who need to
|
||||
change these values. Additionally this files very
|
||||
existance forced Ansible to ignore any other config
|
||||
existence forced Ansible to ignore any other config
|
||||
file in either a users home directory or in the
|
||||
default "/etc/ansible" directory.
|
||||
|
@ -99,7 +99,7 @@ class TestListRemovalUnit(unittest.TestCase):
|
||||
|
||||
class TestDictRemovalUnit(unittest.TestCase):
|
||||
def test_deleting_single_item_in_single_level_noop(self):
|
||||
"""The funtion only operates on nested dictionaries"""
|
||||
"""The function only operates on nested dictionaries"""
|
||||
base = {'key1': 'value1'}
|
||||
target = ['value1']
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user