1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
Commit graph

522 commits

Author SHA1 Message Date
Feanil Patel
892e230514 Don't convert nulls to strings.
This change is similar to https://github.com/ansible/ansible/pull/10465

It extends the logic there to also support none types.  Right now if you have
a '!!null' in yaml, and that var gets passed around, it will get converted to
a string.

eg. defaults/main.yml
```
ENABLE_AWESOME_FEATURE: !!null # Yaml Null
OTHER_CONFIG:
  secret1: "so_secret"
  secret2: "even_more_secret"

CONFIG:
  hostname: "some_hostname"
  features:
    awesame_feature: "{{ ENABLE_AWESOME_FEATURE}}"
  secrets: "{{ OTHER_CONFIG }}"
```

If you output `CONFIG` to json or yaml, the feature flag would get represented in the output
as a string instead of as a null, but secrets would get represented as a dictionary.  This is
a mis-match in behaviour where some "types" are retained and others are not.  This change
should fix the issue.

I also updated the template test to test for this and made the changes to v2.

Added a changelog entry specifically for the change from empty string to null as the default.

Made the null representation configurable.

It still defaults to the python NoneType but can be overriden to be an emptystring by updating
the DEFAULT_NULL_REPRESENTATION config.
2015-08-19 18:35:07 -04:00
Brian Coca
6febca4383 added mention of settable vars to changelog 2015-08-19 15:49:37 -04:00
Brian Coca
5eeeb87d82 removed dupe typoed line 2015-08-18 12:33:07 -04:00
Brian Coca
7eaacaf66e added some new features, rearranged the changelog sections 2015-08-17 21:50:02 -04:00
Brian Coca
c7016481ff added new modules to changelog 2015-08-15 15:27:29 -04:00
Brian Coca
4ab369ee76 added solaris_zone module to changelog 2015-08-14 17:05:41 -04:00
Abhijit Menon-Sen
eff33bac49 Don't accept undocumented "p1;p2" patterns; note in changelog
The correct (and now only) way to say p1 OR p2 is "p1:p2".
2015-08-13 14:51:08 -04:00
Brian Coca
53821ad4b7 added shelvefile lookup to changelog 2015-08-13 11:04:44 -04:00
Brian Coca
d122229147 added info about refresh_inventory to changelog 2015-08-12 10:35:12 -04:00
Brian Coca
7666bde666 updated hashi_vault to new listify, added to changelog 2015-08-10 21:10:00 -04:00
Brian Coca
7eb56abe3d added cs_ip_address to changelog 2015-08-10 17:38:20 -04:00
Brian Coca
3d481ab4ff added znode to changelog 2015-08-10 13:19:37 -04:00
Brian Coca
1dd3ce459d added ini lookup to changelog 2015-08-07 16:27:25 -04:00
Brian Coca
9635f1468a minor changelog updates 2015-08-07 00:20:34 -04:00
Brian Coca
08109731f3 minor changelog updates 2015-08-06 23:31:18 -04:00
Toshio Kuratomi
308bf80055 Cleanups to synchronize including:
* Better comments
* Reorganize code so related settings are close to each other
* Add ::1 to the "localhost" patterns we look for
* Make the dest_port parameter override the ansible_ssh_port setting
* Fix dest_port (wasn't being set)
* more complete detection of delegate_to
* Fix set_remote_user (wasn't being looked for in parameters)
* Instead of removing mode here, have the ansible module accept it
  (better documents the parameters doing it htat way)
2015-08-05 13:16:08 -07:00
Brian Coca
83ca5fb919 added ec2_vpc_subnet to changelog 2015-08-04 19:10:55 -04:00
Brian Coca
cedc8416df added slackpkg to changelog 2015-08-03 16:35:45 -04:00
Brian Coca
d28ec0b49e added apk to changelog 2015-08-03 16:35:45 -04:00
Brian Coca
e2e0dc2719 added selinux_permissive 2015-07-30 12:35:27 -04:00
Brian Coca
adc8a32c65 added vca_nat and vca_fw to changelog 2015-07-28 18:47:16 -04:00
Brian Coca
d276b69b2a put proxmox inventory in correct dir and added to changelog 2015-07-28 18:38:23 -04:00
Brian Coca
2d2ec058c8 added xenserver_Facts to changelog 2015-07-28 16:13:31 -04:00
Brian Coca
67ce15cd99 added ec2_vpc_route_table_facts to new module list 2015-07-28 14:59:27 -04:00
Brian Coca
b91a211663 added note on module urllib2 consolidation 2015-07-28 14:48:24 -04:00
Brian Coca
aa5bd8c2b5 added pam_limits to changelog 2015-07-28 08:23:31 -04:00
Brian Coca
d9c63fb273 added openvz to inventory 2015-07-27 22:52:12 -04:00
Brian Coca
65c649aa3e added virt_net to changelog 2015-07-27 20:52:53 -04:00
Brian Coca
772841a0a2 added virt_pool module to changelog 2015-07-27 20:52:53 -04:00
Rene Moser
41319dc202 changelog: fix typos 2015-07-28 00:00:14 +02:00
Brian Coca
47a22af6c9 added profitbricks cloud module 2015-07-21 14:04:06 -04:00
Brian Coca
db459fd3b3 Merge pull request #9930 from bob-smith/patch-1
Fix some mistakes in CHANELOG.md
2015-07-20 23:13:57 -04:00
Brian Coca
e70e520e60 added cic_publicip to changelog 2015-07-20 10:04:14 -04:00
Brian Coca
39d9ee9f3d added cs_staticnat to changelog 2015-07-20 09:58:31 -04:00
Brian Coca
c80d8f9f5b added s3_logging to changelog 2015-07-18 23:50:25 -04:00
Brian Coca
8df71febb7 added missing win_unzip to changelog 2015-07-17 10:07:22 -04:00
Brian Coca
d70c88bf8c added /os_nova_flavor to changelog 2015-07-16 19:08:13 -04:00
Brian Coca
888bda93c1 added elasticsearch_plugin to changelog 2015-07-16 16:51:26 -04:00
Brian Coca
73eca8239b added sts_assume_role 2015-07-13 19:30:38 -04:00
Brian Coca
ec145a61af added os_floating_ip module and deprecated quantum_open_ip in changelog 2015-07-07 20:11:55 -04:00
Brian Coca
2962047b43 ported 1.9.2 changelog into devel 2015-07-07 17:55:35 -04:00
Brian Coca
08fcd82331 added os_security_group_rule to changelog 2015-07-07 12:39:11 -04:00
Brian Coca
d198b18c14 added win_regedit module to changelog 2015-07-07 10:41:58 -04:00
Brian Coca
d74cf46778 added route53_zone and some v2 features to changelog 2015-07-06 19:53:42 -04:00
Brian Coca
f7da725d53 added bundler to changelog 2015-06-29 20:46:04 -04:00
yunano
e6251542a4 fix small typo for wantlist 2015-06-28 22:07:32 +09:00
Brian Coca
a11b65814c added win_iss modules, corrected bad line join in prev commit 2015-06-26 16:58:14 -04:00
Brian Coca
9ff0645fa2 add3ed missing rax mon module 2015-06-26 16:56:08 -04:00
Brian Coca
4fbf26a478 added rax_mon_* mnodules to changelog 2015-06-26 16:56:08 -04:00
Brian Coca
123d665acb added ec2_vpc_net new module to changelog 2015-06-26 16:56:08 -04:00