diff options
author | Till Backhaus <till@backha.us> | 2015-08-24 20:06:53 +0200 |
---|---|---|
committer | Till Backhaus <till@backha.us> | 2015-08-24 20:06:53 +0200 |
commit | 39e7e05a8dc04613bcf8f5d213ea1fe90452dc32 (patch) | |
tree | b4c04b2e8f2f4bc60491b20b41a32af655b3d8ef | |
parent | bc6a8761a1b9dce2c56628dbb4e6adf97eed6c3b (diff) | |
download | ansible-modules-core-39e7e05a8dc04613bcf8f5d213ea1fe90452dc32.tar.gz |
Delete dead and broken code
-rw-r--r-- | cloud/amazon/s3.py | 9 | ||||
-rw-r--r-- | cloud/google/gc_storage.py | 9 |
2 files changed, 0 insertions, 18 deletions
diff --git a/cloud/amazon/s3.py b/cloud/amazon/s3.py index 5c97031c..e98308bb 100644 --- a/cloud/amazon/s3.py +++ b/cloud/amazon/s3.py @@ -281,15 +281,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/cloud/google/gc_storage.py b/cloud/google/gc_storage.py index 291d4ca0..37d61b0b 100644 --- a/cloud/google/gc_storage.py +++ b/cloud/google/gc_storage.py @@ -211,15 +211,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 |