Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
jacquemier
webdavacc
Commits
eccf139e
Commit
eccf139e
authored
Oct 25, 2019
by
jacquemier
Browse files
B4 integrating logic for LAPP accelerator Team
parent
a1fb5cbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
webdavacc/__init__.py
webdavacc/__init__.py
+7
-7
No files found.
webdavacc/__init__.py
View file @
eccf139e
...
...
@@ -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
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment