Delete dead and broken code
This commit is contained in:
parent
bc6a8761a1
commit
39e7e05a8d
2 changed files with 0 additions and 18 deletions
|
@ -281,15 +281,6 @@ def create_dirkey(module, s3, bucket, obj):
|
||||||
except s3.provider.storage_response_error, e:
|
except s3.provider.storage_response_error, e:
|
||||||
module.fail_json(msg= str(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):
|
def path_check(path):
|
||||||
if os.path.exists(path):
|
if os.path.exists(path):
|
||||||
return True
|
return True
|
||||||
|
|
|
@ -211,15 +211,6 @@ def create_dirkey(module, gs, bucket, obj):
|
||||||
except gs.provider.storage_response_error, e:
|
except gs.provider.storage_response_error, e:
|
||||||
module.fail_json(msg= str(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):
|
def path_check(path):
|
||||||
if os.path.exists(path):
|
if os.path.exists(path):
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in a new issue