mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
892e230514
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 | |
---|---|---|
.. | ||
ec2_elb_instance_setup | 11 years ago | |
ec2_provision_instances | 11 years ago | |
prepare_rax_tests/defaults | 9 years ago | |
prepare_tests/tasks | 10 years ago | |
prepare_win_tests | 10 years ago | |
setup_ec2 | 10 years ago | |
setup_mysql_db | 10 years ago | |
setup_postgresql_db | 10 years ago | |
test_always_run | 11 years ago | |
test_apt | 10 years ago | |
test_apt_repository | 11 years ago | |
test_assemble | 10 years ago | |
test_async | 9 years ago | |
test_authorized_key | 9 years ago | |
test_azure | 9 years ago | |
test_bad_parsing | 9 years ago | |
test_become | 10 years ago | |
test_binary | 10 years ago | |
test_changed_when | 11 years ago | |
test_check_mode | 10 years ago | |
test_command_shell | 9 years ago | |
test_conditionals | 9 years ago | |
test_consul_acl/tasks | 10 years ago | |
test_consul_inventory/tasks | 10 years ago | |
test_consul_kv/tasks | 10 years ago | |
test_consul_service/tasks | 10 years ago | |
test_consul_session/tasks | 10 years ago | |
test_copy | 10 years ago | |
test_cs_account | 10 years ago | |
test_cs_affinitygroup | 9 years ago | |
test_cs_common/defaults | 10 years ago | |
test_cs_firewall | 10 years ago | |
test_cs_instance | 10 years ago | |
test_cs_instancegroup | 9 years ago | |
test_cs_portforward | 10 years ago | |
test_cs_securitygroup | 9 years ago | |
test_cs_securitygroup_rule | 10 years ago | |
test_cs_sshkeypair | 9 years ago | |
test_docker | 10 years ago | |
test_ec2 | 11 years ago | |
test_ec2_ami | 11 years ago | |
test_ec2_asg/tasks | 10 years ago | |
test_ec2_eip | 10 years ago | |
test_ec2_elb | 11 years ago | |
test_ec2_elb_lb | 10 years ago | |
test_ec2_facts | 11 years ago | |
test_ec2_group | 11 years ago | |
test_ec2_key | 11 years ago | |
test_ec2_tag | 11 years ago | |
test_ec2_vol | 11 years ago | |
test_ec2_vpc | 11 years ago | |
test_embedded_module | 10 years ago | |
test_facts_d | 11 years ago | |
test_failed_when/tasks | 9 years ago | |
test_fetch | 10 years ago | |
test_file | 9 years ago | |
test_filters | 9 years ago | |
test_force_handlers | 10 years ago | |
test_gce | 11 years ago | |
test_gce_pd | 11 years ago | |
test_gem | 11 years ago | |
test_get_url | 9 years ago | |
test_git | 10 years ago | |
test_good_parsing | 9 years ago | |
test_handlers | 9 years ago | |
test_handlers_meta | 11 years ago | |
test_hash_behavior | 11 years ago | |
test_hg | 11 years ago | |
test_ignore_errors | 11 years ago | |
test_includes | 9 years ago | |
test_iterators | 9 years ago | |
test_lineinfile | 10 years ago | |
test_lookups | 10 years ago | |
test_mysql_db | 10 years ago | |
test_mysql_user | 9 years ago | |
test_mysql_variables | 10 years ago | |
test_ping/tasks | 11 years ago | |
test_pip | 11 years ago | |
test_postgresql | 10 years ago | |
test_rax | 9 years ago | |
test_rax_cbs | 9 years ago | |
test_rax_cbs_attachments | 9 years ago | |
test_rax_cdb | 9 years ago | |
test_rax_cdb_database | 9 years ago | |
test_rax_clb | 9 years ago | |
test_rax_clb_nodes | 9 years ago | |
test_rax_facts | 9 years ago | |
test_rax_identity | 10 years ago | |
test_rax_keypair | 9 years ago | |
test_rax_meta | 9 years ago | |
test_rax_network | 9 years ago | |
test_rax_scaling_group | 9 years ago | |
test_script | 11 years ago | |
test_service | 10 years ago | |
test_special_vars | 9 years ago | |
test_stat | 10 years ago | |
test_su | 10 years ago | |
test_subversion | 10 years ago | |
test_sudo | 10 years ago | |
test_synchronize | 9 years ago | |
test_template | 9 years ago | |
test_unarchive | 10 years ago | |
test_uri | 9 years ago | |
test_var_blending | 10 years ago | |
test_var_precedence | 10 years ago | |
test_var_precedence_dep | 9 years ago | |
test_var_precedence_inven_override/tasks | 10 years ago | |
test_var_precedence_role1 | 10 years ago | |
test_var_precedence_role2 | 10 years ago | |
test_var_precedence_role3 | 10 years ago | |
test_win_copy | 10 years ago | |
test_win_feature | 10 years ago | |
test_win_fetch/tasks | 9 years ago | |
test_win_file | 9 years ago | |
test_win_get_url | 9 years ago | |
test_win_msi/tasks | 9 years ago | |
test_win_ping/tasks | 9 years ago | |
test_win_raw/tasks | 9 years ago | |
test_win_script | 9 years ago | |
test_win_service | 10 years ago | |
test_win_setup/tasks | 9 years ago | |
test_win_slurp/tasks | 11 years ago | |
test_win_stat/tasks | 9 years ago | |
test_win_template | 9 years ago | |
test_win_user | 9 years ago | |
test_yum | 10 years ago |