touch a file in dry-run gives an error in ansible-2.6.0 #42190
Labels
affects_2.6
This issue/PR affects Ansible v2.6
bug
This issue/PR relates to a bug.
module
This issue/PR relates to a module.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
traceback
This issue/PR includes a traceback.
SUMMARY
Trying to use the
file
module'stouch
state in dry-run mode givesUnboundLocalError: local variable 'diff' referenced before assignment
in 2.6.0.In 2.5.5 this worked OK.
ISSUE TYPE
COMPONENT NAME
file
ANSIBLE VERSION
CONFIGURATION
ALLOW_WORLD_READABLE_TMPFILES(/Users/username/ansible/ansible.cfg) = True
ANSIBLE_PIPELINING(/Users/username/ansible/ansible.cfg) = True
ANSIBLE_SSH_CONTROL_PATH(/Users/username/ansible/ansible.cfg) = ~/.ssh/cm/%%C
CACHE_PLUGIN(/Users/username/ansible/ansible.cfg) = jsonfile
CACHE_PLUGIN_CONNECTION(/Users/username/ansible/ansible.cfg) = ~/.ansible/cached_facts
CACHE_PLUGIN_TIMEOUT(/Users/username/ansible/ansible.cfg) = 600
DEFAULT_FILTER_PLUGIN_PATH(/Users/username/ansible/ansible.cfg) = [u'/Users/username/ansible/filters']
DEFAULT_FORKS(/Users/username/ansible/ansible.cfg) = 25
DEFAULT_GATHERING(/Users/username/ansible/ansible.cfg) = smart
DEFAULT_HOST_LIST(/Users/username/ansible/ansible.cfg) = [u'/Users/username/ansible/inventory.yml']
DEFAULT_JINJA2_EXTENSIONS(/Users/username/ansible/ansible.cfg) = jinja2.ext.loopcontrols
DEFAULT_NO_TARGET_SYSLOG(/Users/username/ansible/ansible.cfg) = True
DEFAULT_ROLES_PATH(/Users/username/ansible/ansible.cfg) = [u'/Users/username/ansible/roles']
DEFAULT_TIMEOUT(/Users/username/ansible/ansible.cfg) = 20
DEFAULT_TRANSPORT(/Users/username/ansible/ansible.cfg) = ssh
DEFAULT_VAULT_PASSWORD_FILE(/Users/username/ansible/ansible.cfg) = /Users/username/ansible/files/open_vault.sh
RETRY_FILES_ENABLED(/Users/username/ansible/ansible.cfg) = False
OS / ENVIRONMENT
N/A
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: