Commit eccf139e authored by jacquemier's avatar jacquemier
Browse files

B4 integrating logic for LAPP accelerator Team

parent a1fb5cbf
......@@ -149,12 +149,12 @@ def main():
action="store_true")
parser.add_argument("-u", "--username", help="username", required=True)
parser.add_argument("-p", "--password", help="password", required=True)
parser.add_argument("-a", "--arguments", help="protocol", required=False)
parser.add_argument("-t", "--port", help="username", required=False)
parser.add_argument("-c", "--command", help="command", required=True)
parser.add_argument("-a", "--arguments", help="arguments", required=False)
parser.add_argument("-t", "--port", help="port", required=False)
parser.add_argument("-r", "--protocol", help="protocol", required=False)
parser.add_argument("-c", "--command", help="protocol", required=True)
......@@ -170,14 +170,14 @@ def main():
'protocol[{}] success'
.format(args.server, args.username, args.protocol))
log(LogLevel.INFO, str(execute(webdav, args.command, args.arguments)))
except:
log(LogLevel.ERROR, 'Connect to Webdav server[{}], username[{}], '
'protocol[{' \
'}] failed'.format(args.server, args.username, args.protocol))
result = execute(webdav, args.command, args.arguments)
log(LogLevel.INFO, str(result))
if __name__ == '__main__':
main()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment