Project

General

Profile

Actions

Bug #29138

closed

Ansible boolean variables overriden with False are not showing in the host YAML output

Added by Alexey Masolov over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Cloned from: https://bugzilla.redhat.com/show_bug.cgi?id=1785231

If the variable's type is boolean, then, an override to 'false' (unquoted) is not taken into account.

Steps to reproduce:

1. Import a role and its variables (works for all role without boolean variables)
2. Associate this role to an host
3. Override a boolean variable and leave the default value to 'false'
4. Access the YAML page of your host and notice the variable is missing
5. Change the overridden value to 'true' and notice the YAML page now shows it

Actual results:

Override value false is not considered.

Actions #1

Updated by Alexey Masolov over 4 years ago

  • Bugzilla link set to 1785231
Actions #2

Updated by The Foreman Bot over 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_ansible/pull/330 added
Actions #3

Updated by Alexey Masolov over 4 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF