Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
6fb13d81
Commit
6fb13d81
authored
Oct 11, 2011
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add timeout parameter for start/stop tasks
parent
e8929d9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
VNCConsole.js
www/manager/VNCConsole.js
+5
-4
Summary.js
www/manager/qemu/Summary.js
+2
-2
No files found.
www/manager/VNCConsole.js
View file @
6fb13d81
...
...
@@ -209,8 +209,9 @@ Ext.define('PVE.KVMConsole', {
throw
"
no VM ID specified
"
;
}
var
vm_command
=
function
(
cmd
,
reload_applet
)
{
var
vm_command
=
function
(
cmd
,
params
,
reload_applet
)
{
PVE
.
Utils
.
API2Request
({
params
:
params
,
url
:
'
/nodes/
'
+
me
.
nodename
+
'
/qemu/
'
+
me
.
vmid
+
"
/status/
"
+
cmd
,
method
:
'
POST
'
,
waitMsgTarget
:
me
,
...
...
@@ -229,7 +230,7 @@ Ext.define('PVE.KVMConsole', {
{
text
:
'
Start
'
,
handler
:
function
()
{
vm_command
(
"
start
"
,
1
);
vm_command
(
"
start
"
,
{},
1
);
}
},
{
...
...
@@ -240,7 +241,7 @@ Ext.define('PVE.KVMConsole', {
if
(
btn
!==
'
yes
'
)
{
return
;
}
vm_command
(
"
stop
"
);
vm_command
(
"
stop
"
,
{
timeout
:
30
}
);
});
}
},
...
...
@@ -269,7 +270,7 @@ Ext.define('PVE.KVMConsole', {
if
(
btn
!==
'
yes
'
)
{
return
;
}
vm_command
(
'
shutdown
'
);
vm_command
(
'
shutdown
'
,
{
timeout
:
30
}
);
});
}
},
...
...
www/manager/qemu/Summary.js
View file @
6fb13d81
...
...
@@ -59,7 +59,7 @@ Ext.define('PVE.qemu.Summary', {
if
(
btn
!==
'
yes
'
)
{
return
;
}
vm_command
(
"
stop
"
);
vm_command
(
"
stop
"
,
{
timeout
:
30
}
);
});
}
},
...
...
@@ -95,7 +95,7 @@ Ext.define('PVE.qemu.Summary', {
if
(
btn
!==
'
yes
'
)
{
return
;
}
vm_command
(
'
shutdown
'
);
vm_command
(
'
shutdown
'
,
{
timeout
:
30
}
);
});
}
},
...
...
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