mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-12 21:44:14 +00:00
fix typos in comments
Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
This commit is contained in:
parent
48b64ef35b
commit
d76c2b0f9e
@ -399,7 +399,7 @@ __PACKAGE__->register_method({
|
|||||||
type => "object",
|
type => "object",
|
||||||
additionalProperties => 1,
|
additionalProperties => 1,
|
||||||
properties => {
|
properties => {
|
||||||
# TODO: document remaing ones
|
# TODO: document remaining ones
|
||||||
'boot-info' => {
|
'boot-info' => {
|
||||||
description => "Meta-information about the boot mode.",
|
description => "Meta-information about the boot mode.",
|
||||||
type => 'object',
|
type => 'object',
|
||||||
|
@ -86,7 +86,7 @@ sub read_aplinfo_from_fh {
|
|||||||
$template = $res->{location};
|
$template = $res->{location};
|
||||||
$template =~ s|.*/([^/]+$PVE::Storage::VZTMPL_EXT_RE_1)$|$1|;
|
$template =~ s|.*/([^/]+$PVE::Storage::VZTMPL_EXT_RE_1)$|$1|;
|
||||||
if ($res->{location} !~ m|^([a-zA-Z]+)\://|) {
|
if ($res->{location} !~ m|^([a-zA-Z]+)\://|) {
|
||||||
# relative localtion (no http:// prefix)
|
# relative location (no http:// prefix)
|
||||||
$res->{location} = "$source/$res->{location}";
|
$res->{location} = "$source/$res->{location}";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -216,7 +216,7 @@ __PACKAGE__->register_method ({
|
|||||||
|
|
||||||
print "start installation\n";
|
print "start installation\n";
|
||||||
|
|
||||||
# this flag helps to determine when apt is actually done installing (vs. partial extracing)
|
# this flag helps to determine when apt is actually done installing (vs. partial extracting)
|
||||||
my $install_flag_fn = PVE::Ceph::Tools::ceph_install_flag_file();
|
my $install_flag_fn = PVE::Ceph::Tools::ceph_install_flag_file();
|
||||||
open(my $install_flag, '>', $install_flag_fn) or die "could not create install flag - $!\n";
|
open(my $install_flag, '>', $install_flag_fn) or die "could not create install flag - $!\n";
|
||||||
close $install_flag;
|
close $install_flag;
|
||||||
|
@ -103,7 +103,7 @@ sub update_supported_cpuflags {
|
|||||||
|
|
||||||
$supported_cpuflags = {};
|
$supported_cpuflags = {};
|
||||||
} else {
|
} else {
|
||||||
# only set cached version if there's actually something to braodcast
|
# only set cached version if there's actually something to broadcast
|
||||||
$cached_kvm_version = $kvm_version;
|
$cached_kvm_version = $kvm_version;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ sub _send_batch_size {
|
|||||||
return $mtu - 50; # a bit more than 48byte to allow for safe room
|
return $mtu - 50; # a bit more than 48byte to allow for safe room
|
||||||
}
|
}
|
||||||
|
|
||||||
# call with the smalles $data chunks possible
|
# call with the smallest $data chunks possible
|
||||||
sub add_metric_data {
|
sub add_metric_data {
|
||||||
my ($class, $txn, $data) = @_;
|
my ($class, $txn, $data) = @_;
|
||||||
return if !defined($data);
|
return if !defined($data);
|
||||||
|
@ -65,7 +65,7 @@ Ext.define('PVE.Parser', {
|
|||||||
if (Ext.isDefined(res[defaultKey])) {
|
if (Ext.isDefined(res[defaultKey])) {
|
||||||
throw 'defaultKey may be only defined once in propertyString';
|
throw 'defaultKey may be only defined once in propertyString';
|
||||||
}
|
}
|
||||||
res[defaultKey] = k; // k ist the value in this case
|
res[defaultKey] = k; // k is the value in this case
|
||||||
} else {
|
} else {
|
||||||
throw `Failed to parse key-value pair: ${property}`;
|
throw `Failed to parse key-value pair: ${property}`;
|
||||||
}
|
}
|
||||||
|
@ -265,7 +265,7 @@ Ext.define('PVE.ceph.ServiceList', {
|
|||||||
});
|
});
|
||||||
me.ids.push(list[i].id);
|
me.ids.push(list[i].id);
|
||||||
} else {
|
} else {
|
||||||
delete pendingRemoval[list[i].id]; // drop exisiting from for-removal
|
delete pendingRemoval[list[i].id]; // drop existing from for-removal
|
||||||
}
|
}
|
||||||
service.updateService(list[i].title, list[i].text, list[i].health);
|
service.updateService(list[i].title, list[i].text, list[i].health);
|
||||||
}
|
}
|
||||||
|
@ -124,7 +124,7 @@ Ext.define('PVE.dc.ACMEPluginEditor', {
|
|||||||
datafield.setValue(extradata.join('\n'));
|
datafield.setValue(extradata.join('\n'));
|
||||||
if (!me.createdInitially) {
|
if (!me.createdInitially) {
|
||||||
datafield.resetOriginalValue();
|
datafield.resetOriginalValue();
|
||||||
me.createdInitially = true; // save that we initally set that
|
me.createdInitially = true; // save that we initially set that
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onGetValues: function(values) {
|
onGetValues: function(values) {
|
||||||
|
@ -37,7 +37,7 @@ Ext.define('PVE.form.SizeField', {
|
|||||||
unit: 'MiB',
|
unit: 'MiB',
|
||||||
unitPostfix: '',
|
unitPostfix: '',
|
||||||
|
|
||||||
// use this if the backend saves values in another unit tha bytes, e.g.,
|
// use this if the backend saves values in a unit other than bytes, e.g.,
|
||||||
// for KiB set it to 'KiB'
|
// for KiB set it to 'KiB'
|
||||||
backendUnit: undefined,
|
backendUnit: undefined,
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ Ext.define('PVE.lxc.CPUEdit', {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
// The view model of the parent shoul contain a 'cgroupMode' variable (or params for v2 are used).
|
// The view model of the parent should contain a 'cgroupMode' variable (or params for v2 are used).
|
||||||
Ext.define('PVE.lxc.CPUInputPanel', {
|
Ext.define('PVE.lxc.CPUInputPanel', {
|
||||||
extend: 'Proxmox.panel.InputPanel',
|
extend: 'Proxmox.panel.InputPanel',
|
||||||
alias: 'widget.pveLxcCPUInputPanel',
|
alias: 'widget.pveLxcCPUInputPanel',
|
||||||
|
@ -61,7 +61,7 @@ Ext.define('PVE.qemu.OSDefaults', {
|
|||||||
networkCard: 'virtio',
|
networkCard: 'virtio',
|
||||||
});
|
});
|
||||||
|
|
||||||
// recommandation from http://wiki.qemu.org/Windows2000
|
// recommendation from http://wiki.qemu.org/Windows2000
|
||||||
addOS({
|
addOS({
|
||||||
pveOS: 'w2k',
|
pveOS: 'w2k',
|
||||||
parent: 'generic',
|
parent: 'generic',
|
||||||
|
@ -180,7 +180,7 @@ Ext.define('PVE.qemu.PCIInputPanel', {
|
|||||||
columnWidth: 1,
|
columnWidth: 1,
|
||||||
padding: '0 0 10 0',
|
padding: '0 0 10 0',
|
||||||
itemId: 'iommuwarning',
|
itemId: 'iommuwarning',
|
||||||
value: 'The selected Device is not in a seperate IOMMU group, make sure this is intended.',
|
value: 'The selected Device is not in a separate IOMMU group, make sure this is intended.',
|
||||||
userCls: 'pmx-hint',
|
userCls: 'pmx-hint',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// The view model of the parent shoul contain a 'cgroupMode' variable (or params for v2 are used).
|
// The view model of the parent should contain a 'cgroupMode' variable (or params for v2 are used).
|
||||||
Ext.define('PVE.qemu.ProcessorInputPanel', {
|
Ext.define('PVE.qemu.ProcessorInputPanel', {
|
||||||
extend: 'Proxmox.panel.InputPanel',
|
extend: 'Proxmox.panel.InputPanel',
|
||||||
alias: 'widget.pveQemuProcessorPanel',
|
alias: 'widget.pveQemuProcessorPanel',
|
||||||
|
@ -102,7 +102,7 @@ Ext.define('PVE.window.Migrate', {
|
|||||||
},
|
},
|
||||||
|
|
||||||
onTargetChange: function(nodeSelector) {
|
onTargetChange: function(nodeSelector) {
|
||||||
// Always display the storages of the currently seleceted migration target
|
// Always display the storages of the currently selected migration target
|
||||||
this.lookup('pveDiskStorageSelector').setNodename(nodeSelector.value);
|
this.lookup('pveDiskStorageSelector').setNodename(nodeSelector.value);
|
||||||
this.checkMigratePreconditions();
|
this.checkMigratePreconditions();
|
||||||
},
|
},
|
||||||
|
@ -132,7 +132,7 @@ Ext.define('PVE.window.Restore', {
|
|||||||
|
|
||||||
if (key === '#qmdump#map') {
|
if (key === '#qmdump#map') {
|
||||||
let match = value.match(/^(\S+):(\S+):(\S*):(\S*):$/) ?? [];
|
let match = value.match(/^(\S+):(\S+):(\S*):(\S*):$/) ?? [];
|
||||||
// if a /dev/XYZ disk was backed up, ther is no storage hint
|
// if a /dev/XYZ disk was backed up, there is no storage hint
|
||||||
allStoragesAvailable &&= !!match[3] && !!PVE.data.ResourceStore.getById(
|
allStoragesAvailable &&= !!match[3] && !!PVE.data.ResourceStore.getById(
|
||||||
`storage/${view.nodename}/${match[3]}`);
|
`storage/${view.nodename}/${match[3]}`);
|
||||||
} else if (key === 'name' || key === 'hostname') {
|
} else if (key === 'name' || key === 'hostname') {
|
||||||
|
@ -5,7 +5,7 @@ Ext.define('PVE.window.TreeSettingsEdit', {
|
|||||||
title: gettext('Tree Settings'),
|
title: gettext('Tree Settings'),
|
||||||
isCreate: false,
|
isCreate: false,
|
||||||
|
|
||||||
url: '#', // ignored as submit() gets overriden here, but the parent class requires it
|
url: '#', // ignored as submit() gets overridden here, but the parent class requires it
|
||||||
|
|
||||||
width: 450,
|
width: 450,
|
||||||
fieldDefaults: {
|
fieldDefaults: {
|
||||||
|
@ -37,7 +37,7 @@ var js_api_version;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Message types for messsages to/from the extension
|
* Message types for messages to/from the extension
|
||||||
* @const
|
* @const
|
||||||
* @enum {string}
|
* @enum {string}
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user