From e005ef0c36389155f0d8b1d9cdda8fe868c677b0 Mon Sep 17 00:00:00 2001 From: Till Backhaus Date: Mon, 24 Aug 2015 20:06:53 +0200 Subject: [PATCH] Delete dead and broken code --- lib/ansible/modules/cloud/amazon/s3.py | 9 --------- lib/ansible/modules/cloud/google/gc_storage.py | 9 --------- 2 files changed, 18 deletions(-) diff --git a/lib/ansible/modules/cloud/amazon/s3.py b/lib/ansible/modules/cloud/amazon/s3.py index 3a51e2600ff..23bdd31e2e5 100644 --- a/lib/ansible/modules/cloud/amazon/s3.py +++ b/lib/ansible/modules/cloud/amazon/s3.py @@ -288,15 +288,6 @@ def create_dirkey(module, s3, bucket, obj): except s3.provider.storage_response_error, e: module.fail_json(msg= str(e)) -def upload_file_check(src): - if os.path.exists(src): - file_exists is True - else: - file_exists is False - if os.path.isdir(src): - module.fail_json(msg="Specifying a directory is not a valid source for upload.", failed=True) - return file_exists - def path_check(path): if os.path.exists(path): return True diff --git a/lib/ansible/modules/cloud/google/gc_storage.py b/lib/ansible/modules/cloud/google/gc_storage.py index 3155a3e82fc..6aef328fc02 100644 --- a/lib/ansible/modules/cloud/google/gc_storage.py +++ b/lib/ansible/modules/cloud/google/gc_storage.py @@ -218,15 +218,6 @@ def create_dirkey(module, gs, bucket, obj): except gs.provider.storage_response_error, e: module.fail_json(msg= str(e)) -def upload_file_check(src): - if os.path.exists(src): - file_exists is True - else: - file_exists is False - if os.path.isdir(src): - module.fail_json(msg="Specifying a directory is not a valid source for upload.", failed=True) - return file_exists - def path_check(path): if os.path.exists(path): return True