Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

gcp_storage_object: Check remote_object before operation #335

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/ansible/modules/cloud/google/gcp_storage_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def main():
module.fail_json(msg="File does not exist on disk")

# Check if we'll be overwriting files.
if not module.params['overwrite']:
if remote_object and not module.params['overwrite']:
remote_object['changed'] = False
if module.params['action'] == 'download' and local_file_exists:
# If files differ, throw an error
Expand Down