From 7690ee142ce3c1861abd50c9e8f0886f7df5464d Mon Sep 17 00:00:00 2001 From: pangliye Date: Mon, 19 Dec 2016 19:52:31 -0500 Subject: [PATCH] fix some typo error Change-Id: I2dbfcfbae06bb9f1d10a43d3fd24f5e1a6d9dcdc --- lib/dictutils.py | 4 ++-- releasenotes/notes/remove-ansible.cfg-e65e4f17bc30cce7.yaml | 2 +- tests/test_dictutils.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/dictutils.py b/lib/dictutils.py index 4cc7acc8a2..442f632edb 100644 --- a/lib/dictutils.py +++ b/lib/dictutils.py @@ -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 diff --git a/releasenotes/notes/remove-ansible.cfg-e65e4f17bc30cce7.yaml b/releasenotes/notes/remove-ansible.cfg-e65e4f17bc30cce7.yaml index 35c5523340..aae8ca2a81 100644 --- a/releasenotes/notes/remove-ansible.cfg-e65e4f17bc30cce7.yaml +++ b/releasenotes/notes/remove-ansible.cfg-e65e4f17bc30cce7.yaml @@ -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. diff --git a/tests/test_dictutils.py b/tests/test_dictutils.py index c6c970460a..2022e8102b 100644 --- a/tests/test_dictutils.py +++ b/tests/test_dictutils.py @@ -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']