Commit Graph

522 Commits (892e230514090dc9221ee01d289c3532aa6ef260)

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.
9 years ago
Brian Coca 6febca4383 added mention of settable vars to changelog 9 years ago
Brian Coca 5eeeb87d82 removed dupe typoed line 9 years ago
Brian Coca 7eaacaf66e added some new features, rearranged the changelog sections 9 years ago
Brian Coca c7016481ff added new modules to changelog 9 years ago
Brian Coca 4ab369ee76 added solaris_zone module to changelog 9 years ago
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".
9 years ago
Brian Coca 53821ad4b7 added shelvefile lookup to changelog 9 years ago
Brian Coca d122229147 added info about refresh_inventory to changelog 9 years ago
Brian Coca 7666bde666 updated hashi_vault to new listify, added to changelog 9 years ago
Brian Coca 7eb56abe3d added cs_ip_address to changelog 9 years ago
Brian Coca 3d481ab4ff added znode to changelog 9 years ago
Brian Coca 1dd3ce459d added ini lookup to changelog 9 years ago
Brian Coca 9635f1468a minor changelog updates 9 years ago
Brian Coca 08109731f3 minor changelog updates 9 years ago
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)
9 years ago
Brian Coca 83ca5fb919 added ec2_vpc_subnet to changelog 9 years ago
Brian Coca cedc8416df added slackpkg to changelog 9 years ago
Brian Coca d28ec0b49e added apk to changelog 9 years ago
Brian Coca e2e0dc2719 added selinux_permissive 9 years ago
Brian Coca adc8a32c65 added vca_nat and vca_fw to changelog 9 years ago
Brian Coca d276b69b2a put proxmox inventory in correct dir and added to changelog 9 years ago
Brian Coca 2d2ec058c8 added xenserver_Facts to changelog 9 years ago
Brian Coca 67ce15cd99 added ec2_vpc_route_table_facts to new module list 9 years ago
Brian Coca b91a211663 added note on module urllib2 consolidation 9 years ago
Brian Coca aa5bd8c2b5 added pam_limits to changelog 9 years ago
Brian Coca d9c63fb273 added openvz to inventory 9 years ago
Brian Coca 65c649aa3e added virt_net to changelog 9 years ago
Brian Coca 772841a0a2 added virt_pool module to changelog 9 years ago
Rene Moser 41319dc202 changelog: fix typos 9 years ago
Brian Coca 47a22af6c9 added profitbricks cloud module 9 years ago
Brian Coca db459fd3b3 Merge pull request #9930 from bob-smith/patch-1
Fix some mistakes in CHANELOG.md
9 years ago
Brian Coca e70e520e60 added cic_publicip to changelog 9 years ago
Brian Coca 39d9ee9f3d added cs_staticnat to changelog 9 years ago
Brian Coca c80d8f9f5b added s3_logging to changelog 9 years ago
Brian Coca 8df71febb7 added missing win_unzip to changelog 9 years ago
Brian Coca d70c88bf8c added /os_nova_flavor to changelog 9 years ago
Brian Coca 888bda93c1 added elasticsearch_plugin to changelog 9 years ago
Brian Coca 73eca8239b added sts_assume_role 9 years ago
Brian Coca ec145a61af added os_floating_ip module and deprecated quantum_open_ip in changelog 9 years ago
Brian Coca 2962047b43 ported 1.9.2 changelog into devel 9 years ago
Brian Coca 08fcd82331 added os_security_group_rule to changelog 9 years ago
Brian Coca d198b18c14 added win_regedit module to changelog 9 years ago
Brian Coca d74cf46778 added route53_zone and some v2 features to changelog 9 years ago
Brian Coca f7da725d53 added bundler to changelog 10 years ago
yunano e6251542a4 fix small typo for wantlist 10 years ago
Brian Coca a11b65814c added win_iss modules, corrected bad line join in prev commit 10 years ago
Brian Coca 9ff0645fa2 add3ed missing rax mon module 10 years ago
Brian Coca 4fbf26a478 added rax_mon_* mnodules to changelog 10 years ago
Brian Coca 123d665acb added ec2_vpc_net new module to changelog 10 years ago