From 6cea89299a515c7bc4a70611edd10dbe103d92eb Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Fri, 24 Mar 2017 09:25:50 -0700 Subject: [PATCH] Add c7c8481 (quoting with hash mark in ini inventories) fix to changelog (#22921) --- CHANGELOG.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e71d78c4b3..62ddda06e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,7 +17,22 @@ Ansible Changes By Release * removed previously deprecated config option 'hostfile' and env var 'ANSIBLE_HOSTS' * removed unused and deprecated config option 'pattern' * Updated the copy of six bundled for modules to use from 1.4.1 to 1.10.0 +* Fixed a cornercase with ini inventory vars. Previously, if an inventory var + was a quoted string with hash marks ("#") in it then the parsed string + included the quotes. Now the string will not be quoted. Previously, if the + quoting ended before the string finished and then the hash mark appeared, the + hash mark was included as part of the string. Now it is treated as + a trailing comment:: + # Before: + var1="string#comment" ===> var1: "\"string#comment\"" + var1="string" #comment ===> var1: "\"string\" #comment" + # After: + var1="string#comment" ===> var1: "string#comment" + var1="string" #comment ===> var1: "string" + + The new behaviour mirrors how the variables would appear if there was no hash + mark in the string. #### New: Tests - any : true if any element is true