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
c636e520
authored
Sep 24, 2014
by
Csók Tamás
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
client: corrected an extreme case of enviroment variable handling
parent
bf98e3e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
src/nsi/installer/cloud_connect_from_windows.py
+10
-3
No files found.
src/nsi/installer/cloud_connect_from_windows.py
View file @
c636e520
...
...
@@ -29,9 +29,16 @@ def connect(vm):
vm.password -- Password used for the connection
"""
if
vm
.
protocol
==
"SSH"
:
arguments
=
(
"-ssh -P
%
s -pw
%
s"
%
(
vm
.
port
,
vm
.
password
)
+
"
%
s@
%
s"
%
(
vm
.
user
,
vm
.
host
))
subprocess
.
Popen
(
"putty.exe "
+
arguments
,
shell
=
True
)
arguments
=
(
"-ssh -P
%(port)
s -pw
%(password)
s"
"
%(user)
s@
%(host)
s"
%
{
'port'
:
vm
.
port
,
'password'
:
vm
.
password
,
'user'
:
vm
.
user
,
'host'
:
vm
.
host
})
directory
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
subprocess
.
Popen
(
"
%(path)
s
\\
putty.exe
%(arguments)
s"
%
{
'path'
:
directory
,
'arguments'
:
arguments
},
shell
=
True
)
elif
vm
.
protocol
==
"NX"
:
listdir
=
os
.
path
.
expanduser
(
"~
\\
.nx
\\
config
\\
*.nxs"
)
found
=
False
...
...
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