Commit e55ab46a authored by Dietmar Maurer's avatar Dietmar Maurer

add/display storage option

parent 3b0ec331
......@@ -609,6 +609,15 @@ __PACKAGE__->register_method({
$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();
foreach my $k (keys %$properties) {
......
......@@ -38,6 +38,10 @@ Ext.define('PVE.openvz.Options', {
header: 'Template',
defaultValue: 'no set'
},
storage: {
header: 'Storage',
defaultValue: 'no set'
},
cpuunits: {
header: 'CPU units',
defaultValue: '1000',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment