Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
client
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
0
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d16bee08
authored
Sep 04, 2014
by
Csók Tamás
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
client: flake8 correction
parent
df2cfe8b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dist/cloud_connect_from_linux.py
+2
-2
No files found.
dist/cloud_connect_from_linux.py
View file @
d16bee08
...
...
@@ -26,8 +26,8 @@ def connect(vm):
vm.password -- Password used for the connection
"""
if
vm
.
protocol
==
"SSH"
:
command
=
"sshpass -p
%
s ssh -p
%
s"
%
(
vm
.
password
,
vm
.
port
)
+
" -o StrictHostKeyChecking=no
%
s@
%
s"
%
(
vm
.
user
,
vm
.
host
)
command
=
(
"sshpass -p
%
s ssh -p
%
s"
%
(
vm
.
password
,
vm
.
port
)
+
" -o StrictHostKeyChecking=no
%
s@
%
s"
%
(
vm
.
user
,
vm
.
host
)
)
subprocess
.
call
(
command
,
shell
=
True
)
elif
vm
.
protocol
in
(
"NX"
,
"RDP"
):
server
=
"
%
s:
%
s"
%
(
vm
.
host
,
vm
.
port
)
...
...
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