#1: Typecast to bool
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
99e8577bd0
commit
bb5a339e81
@ -15,7 +15,7 @@ def main():
|
||||
copy(nextcloudInstance, user, destinationPath, filecontent, password, protocol, verifyTls)
|
||||
|
||||
def copy(nc, user, pathtofile, filecontent, password, protocol, verifyTls):
|
||||
journey = requests.put(protocol + "://" + nc + "/remote.php/dav/files/" + user + "/" + pathtofile, data=filecontent, auth=(user, password), verify=distutils.util.strtobool(verifyTls))
|
||||
journey = requests.put(protocol + "://" + nc + "/remote.php/dav/files/" + user + "/" + pathtofile, data=filecontent, auth=(user, password), verify=bool(distutils.util.strtobool(verifyTls)))
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
Loading…
Reference in New Issue
Block a user