#1: Typecast to bool
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
katharina 2021-12-04 18:49:15 +01:00
parent 99e8577bd0
commit bb5a339e81

View File

@ -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()