Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix changes status and return diff information when state=touch and c… #59341

Closed
wants to merge 4 commits into from

Commits on Aug 13, 2019

  1. Fix changes status and return diff information when state=touch and c…

    …heck_mode is set
    
    Fixes ansible#50452
    
    * Add check_model parameter to update_timestamp_for_file function and the file timestamp
      only updates when check_mode is set to False (default option)
    * Changed is set to TRUE if file does not exist or the access_time and modification_time
      option are not set to preserve
    * Add unittest to test touch module in check mode
    
    Signed-off-by: Dmitry Nortsev <dmitry.nortsev@gmail.com>
    Dmitry Nortsev authored and DSNortsev committed Aug 13, 2019
    Copy the full SHA
    42a9fc1 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    e91a6c3 View commit details
    Browse the repository at this point in the history
  3. Fix cosmetic issues

    DSNortsev committed Aug 13, 2019
    Copy the full SHA
    0574155 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    c1241d9 View commit details
    Browse the repository at this point in the history