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
e55ab46a
Commit
e55ab46a
authored
Nov 14, 2011
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add/display storage option
parent
3b0ec331
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
OpenVZ.pm
PVE/API2/OpenVZ.pm
+9
-0
Options.js
www/manager/openvz/Options.js
+4
-0
No files found.
PVE/API2/OpenVZ.pm
View file @
e55ab46a
...
@@ -609,6 +609,15 @@ __PACKAGE__->register_method({
...
@@ -609,6 +609,15 @@ __PACKAGE__->register_method({
$conf
->
{
ostemplate
}
=
$veconf
->
{
ostemplate
}
->
{
value
};
$conf
->
{
ostemplate
}
=
$veconf
->
{
ostemplate
}
->
{
value
};
}
}
my
$stcfg
=
cfs_read_file
("
storage.cfg
");
if
(
$veconf
->
{
ve_private
}
&&
$veconf
->
{
ve_private
}
->
{
value
})
{
my
$path
=
$veconf
->
{
ve_private
}
->
{
value
};
my
(
$vtype
,
$volid
)
=
PVE::Storage::
path_to_volume_id
(
$stcfg
,
$path
);
my
(
$sid
,
$volname
)
=
PVE::Storage::
parse_volume_id
(
$volid
,
1
)
if
$volid
;
$conf
->
{
storage
}
=
$sid
||
$path
;
}
my
$properties
=
PVE::OpenVZ::
json_config_properties
();
my
$properties
=
PVE::OpenVZ::
json_config_properties
();
foreach
my
$k
(
keys
%
$properties
)
{
foreach
my
$k
(
keys
%
$properties
)
{
...
...
www/manager/openvz/Options.js
View file @
e55ab46a
...
@@ -38,6 +38,10 @@ Ext.define('PVE.openvz.Options', {
...
@@ -38,6 +38,10 @@ Ext.define('PVE.openvz.Options', {
header
:
'
Template
'
,
header
:
'
Template
'
,
defaultValue
:
'
no set
'
defaultValue
:
'
no set
'
},
},
storage
:
{
header
:
'
Storage
'
,
defaultValue
:
'
no set
'
},
cpuunits
:
{
cpuunits
:
{
header
:
'
CPU units
'
,
header
:
'
CPU units
'
,
defaultValue
:
'
1000
'
,
defaultValue
:
'
1000
'
,
...
...
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